- fixed missing 'player left the game' message

This commit is contained in:
alexey.lysiuk 2021-02-15 11:18:06 +02:00
parent 3b7ada83bf
commit d23755f76b

View file

@ -1793,6 +1793,7 @@ void G_DoPlayerPop(int playernum)
FString message = GStrings(deathmatch? "TXT_LEFTWITHFRAGS" : "TXT_LEFTTHEGAME"); FString message = GStrings(deathmatch? "TXT_LEFTWITHFRAGS" : "TXT_LEFTTHEGAME");
message.Substitute("%s", players[playernum].userinfo.GetName()); message.Substitute("%s", players[playernum].userinfo.GetName());
message.Substitute("%d", FStringf("%d", players[playernum].fragcount)); message.Substitute("%d", FStringf("%d", players[playernum].fragcount));
Printf("%s\n", message.GetChars());
// [RH] Revert each player to their own view if spying through the player who left // [RH] Revert each player to their own view if spying through the player who left
for (int ii = 0; ii < MAXPLAYERS; ++ii) for (int ii = 0; ii < MAXPLAYERS; ++ii)