Commit a4549a40 authored by mercury233's avatar mercury233 Committed by GitHub

fix victory message hide player name (#2499)

parent db856bc7
......@@ -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) {
else {
wchar_t vic_name[20];
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 {
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.hostname, 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment