mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'viewpoint-reset' into 'master'
Reset some viewpoints properly (closes #69) Closes #69 See merge request KartKrew/Kart!282
This commit is contained in:
commit
7555177cb1
3 changed files with 4 additions and 12 deletions
|
|
@ -2773,8 +2773,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]);
|
||||||
|
|
|
||||||
|
|
@ -1770,14 +1770,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);
|
||||||
|
|
|
||||||
|
|
@ -8234,8 +8234,8 @@ boolean P_SpectatorJoinGame(player_t *player)
|
||||||
player->playerstate = PST_REBORN;
|
player->playerstate = PST_REBORN;
|
||||||
|
|
||||||
//Reset away view
|
//Reset away view
|
||||||
if (P_IsLocalPlayer(player) && g_localplayers[0] != consoleplayer)
|
if (P_IsLocalPlayer(player) && displayplayers[0] != consoleplayer)
|
||||||
g_localplayers[0] = consoleplayer;
|
displayplayers[0] = consoleplayer;
|
||||||
|
|
||||||
HU_AddChatText(va(M_GetText("\x82*%s entered the game."), player_names[player-players]), false);
|
HU_AddChatText(va(M_GetText("\x82*%s entered the game."), player_names[player-players]), false);
|
||||||
return true; // no more player->mo, cannot continue.
|
return true; // no more player->mo, cannot continue.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue