mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Update p_user.c
This commit is contained in:
parent
194aa8d5da
commit
ad32af337b
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…
Add table
Reference in a new issue