diff --git a/src/p_user.c b/src/p_user.c index 90616754..155618c5 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -8719,9 +8719,14 @@ void P_PlayerThink(player_t *player) if (player->flashcount) player->flashcount--; - // By the time P_MoveChaseCamera is called, this might be zero. Do not do it here. - //if (player->awayviewtics) - // player->awayviewtics--; + // Re-fixed by Jimita (11-12-2018) + if (player->awayviewtics) + { + player->awayviewtics--; + if (!player->awayviewtics) + player->awayviewtics = -1; + // The timer might've reached zero, but we'll run the remote view camera anyway by setting it to -1. + } /// \note do this in the cheat code if (player->pflags & PF_NOCLIP) @@ -9499,8 +9504,8 @@ void P_PlayerAfterThink(player_t *player) } } - if (player->awayviewtics) - player->awayviewtics--; + if (player->awayviewtics < 0) + player->awayviewtics = 0; // spectator invisibility and nogravity. if ((netgame || multiplayer) && player->spectator)