mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-22 21:41:31 +00:00
Reset viewpoint to self when you spawn
This commit is contained in:
parent
3c85a9a436
commit
dd1db7cd4a
1 changed files with 7 additions and 6 deletions
13
src/p_mobj.c
13
src/p_mobj.c
|
|
@ -12972,19 +12972,20 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
|
||||
if (G_IsPartyLocal(playernum))
|
||||
{
|
||||
// Spectating always enables director cam. If there
|
||||
// is no one to view, this will do nothing. If
|
||||
// someone enters the game later, it will
|
||||
// automatically switch to that player.
|
||||
K_ToggleDirector(G_PartyPosition(playernum), p->spectator);
|
||||
|
||||
// Spectators can switch to freecam. This should be
|
||||
// disabled when they enter the race, or when the level
|
||||
// changes.
|
||||
if (!demo.playback)
|
||||
{
|
||||
camera[G_PartyPosition(playernum)].freecam = false;
|
||||
displayplayers[G_PartyPosition(playernum)] = playernum;
|
||||
}
|
||||
|
||||
// Spectating always enables director cam. If there
|
||||
// is no one to view, this will do nothing. If
|
||||
// someone enters the game later, it will
|
||||
// automatically switch to that player.
|
||||
K_ToggleDirector(G_PartyPosition(playernum), p->spectator);
|
||||
}
|
||||
else if (pcount == 1 && !p->spectator)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue