Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro
Commits
a4549a40
Commit
a4549a40
authored
Sep 18, 2023
by
mercury233
Committed by
GitHub
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix victory message hide player name (#2499)
parent
db856bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
gframe/duelclient.cpp
gframe/duelclient.cpp
+13
-12
No files found.
gframe/duelclient.cpp
View file @
a4549a40
...
...
@@ -1146,21 +1146,22 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
wchar_t vic_buf[256];
if(player == 2)
mainGame->showcardcode = 3;
else
if
(
mainGame
->
LocalPlayer
(
player
)
==
0
)
{
mainGame
->
showcardcode
=
1
;
if
(
match_kill
)
myswprintf
(
vic_buf
,
dataManager
.
GetVictoryString
(
0xffff
),
dataManager
.
GetName
(
match_kill
));
else
if
(
type
<
0x10
)
myswprintf
(
vic_buf
,
L"[%ls] %ls"
,
mainGame
->
dInfo
.
clientname
,
dataManager
.
GetVictoryString
(
type
));
else
myswprintf
(
vic_buf
,
L"%ls"
,
dataManager
.
GetVictoryString
(
type
));
mainGame
->
dInfo
.
vic_string
=
vic_buf
;
}
else
{
mainGame
->
showcardcode
=
2
;
else {
wchar_t vic_name[20];
if(mainGame->LocalPlayer(player) == 0) {
mainGame->showcardcode = 1;
myswprintf(vic_name, L"%ls", mainGame->dInfo.clientname);
}
else {
mainGame->showcardcode = 2;
myswprintf(vic_name, L"%ls", mainGame->dInfo.hostname);
}
if(mainGame->gameConf.hide_player_name)
myswprintf(vic_name, L"********");
if(match_kill)
myswprintf(vic_buf, dataManager.GetVictoryString(0xffff), dataManager.GetName(match_kill));
else if(type < 0x10)
myswprintf
(
vic_buf
,
L"[%ls] %ls"
,
mainGame
->
dInfo
.
host
name
,
dataManager
.
GetVictoryString
(
type
));
myswprintf(vic_buf, L"[%ls] %ls",
vic_
name, dataManager.GetVictoryString(type));
else
myswprintf(vic_buf, L"%ls", dataManager.GetVictoryString(type));
mainGame->dInfo.vic_string = vic_buf;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment