move displayplayer assignment earlier
This commit is contained in:
1 parent
906828fadb
commit
ebc4bf4b45
1 file changed
+3
-3
+3
-3
@@ -3180,6 +3180,9 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason)
|
||||
|
||||
LUAh_PlayerQuit(&players[playernum], reason); // Lua hook for player quitting
|
||||
|
||||
if (playernum == displayplayers[0] && !demo.playback)
|
||||
displayplayers[0] = consoleplayer; // don't look through someone's view who isn't there
|
||||
|
||||
// Reset player data
|
||||
CL_ClearPlayer(playernum);
|
||||
|
||||
@@ -3199,9 +3202,6 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason)
|
||||
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
||||
}
|
||||
|
||||
if (playernum == displayplayers[0] && !demo.playback)
|
||||
displayplayers[0] = consoleplayer; // don't look through someone's view who isn't there
|
||||
|
||||
LUA_InvalidatePlayer(&players[playernum]);
|
||||
|
||||
if (G_BattleGametype()) // SRB2Kart
|
||||
|
||||
Reference in new issue
Block a user