mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-15 14:11:19 +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--;
|
player->awayviewtics--;
|
||||||
if (!player->awayviewtics)
|
if (!player->awayviewtics)
|
||||||
player->awayviewtics = -1;
|
player->awayviewtics = -1;
|
||||||
// The timer might've reached zero, but we'll run the remote view camera anyway.
|
// The timer might've reached zero, but we'll run the remote view camera anyway by setting it to -1.
|
||||||
// This is completely fine to do, since -1 evaluates to true in a "if (!player->awayviewtics)" conditional.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \note do this in the cheat code
|
/// \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)
|
if (player->awayviewtics < 0)
|
||||||
player->awayviewtics = 0;
|
player->awayviewtics = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue