mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
Reset camera when moving player to spawn/starpost
This commit is contained in:
parent
dc1beb8e5b
commit
6d1a3bfce0
1 changed files with 7 additions and 0 deletions
|
@ -2809,6 +2809,13 @@ void G_MovePlayerToSpawnOrStarpost(INT32 playernum)
|
|||
P_MovePlayerToStarpost(playernum);
|
||||
else
|
||||
P_MovePlayerToSpawn(playernum, G_FindMapStart(playernum));
|
||||
|
||||
R_ResetMobjInterpolationState(players[playernum].mo);
|
||||
|
||||
if (playernum == consoleplayer)
|
||||
P_ResetCamera(&players[playernum], &camera);
|
||||
else if (playernum == secondarydisplayplayer)
|
||||
P_ResetCamera(&players[playernum], &camera2);
|
||||
}
|
||||
|
||||
mapthing_t *G_FindCTFStart(INT32 playernum)
|
||||
|
|
Loading…
Reference in a new issue