mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Reset DISPLAYPLAYERS if someone leaves
This commit is contained in:
parent
d82859e108
commit
cbcbe9f15b
2 changed files with 2 additions and 10 deletions
|
|
@ -2766,8 +2766,8 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason)
|
||||||
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playernum == g_localplayers[0] && !demo.playback)
|
if (playernum == displayplayers[0] && !demo.playback)
|
||||||
g_localplayers[0] = consoleplayer; // don't look through someone's view who isn't there
|
displayplayers[0] = consoleplayer; // don't look through someone's view who isn't there
|
||||||
|
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
LUA_InvalidatePlayer(&players[playernum]);
|
LUA_InvalidatePlayer(&players[playernum]);
|
||||||
|
|
|
||||||
|
|
@ -1765,14 +1765,6 @@ void G_DoLoadLevel(boolean resetplayer)
|
||||||
if (!resetplayer)
|
if (!resetplayer)
|
||||||
P_FindEmerald();
|
P_FindEmerald();
|
||||||
|
|
||||||
g_localplayers[0] = consoleplayer; // view the guy you are playing
|
|
||||||
|
|
||||||
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
|
|
||||||
{
|
|
||||||
if (i > 0 && r_splitscreen < i)
|
|
||||||
g_localplayers[i] = consoleplayer;
|
|
||||||
}
|
|
||||||
|
|
||||||
gameaction = ga_nothing;
|
gameaction = ga_nothing;
|
||||||
#ifdef PARANOIA
|
#ifdef PARANOIA
|
||||||
Z_CheckHeap(-2);
|
Z_CheckHeap(-2);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue