mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
Update p_user.c
This commit is contained in:
parent
172fd3bf52
commit
966afb6017
1 changed files with 1 additions and 3 deletions
|
@ -8718,8 +8718,7 @@ void P_PlayerThink(player_t *player)
|
|||
player->awayviewtics--;
|
||||
if (!player->awayviewtics)
|
||||
player->awayviewtics = -1;
|
||||
// The timer might've reached zero, but we'll run the remote view camera anyway.
|
||||
// This is completely fine to do, since -1 evaluates to true in a "if (!player->awayviewtics)" conditional.
|
||||
// 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
|
||||
|
@ -9498,7 +9497,6 @@ void P_PlayerAfterThink(player_t *player)
|
|||
}
|
||||
}
|
||||
|
||||
// Reset it to zero if it's a -1.
|
||||
if (player->awayviewtics < 0)
|
||||
player->awayviewtics = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue