Fix missing timer definition, unset player speed when unfaulting

This commit is contained in:
AJ Martinez 2023-02-03 02:34:36 -07:00
parent 101db619e6
commit dfdfef3355
2 changed files with 3 additions and 0 deletions

View file

@ -581,6 +581,8 @@ struct player_t
tic_t ebrakefor; // Ebrake timer, used for visuals. tic_t ebrakefor; // Ebrake timer, used for visuals.
UINT16 faulttimer; // Used for misc FAULT visuals
UINT32 roundscore; // battle score this round UINT32 roundscore; // battle score this round
UINT8 emeralds; UINT8 emeralds;
UINT8 bumpers; UINT8 bumpers;

View file

@ -1916,6 +1916,7 @@ static void K_HandleLapIncrement(player_t *player)
player->mo->flags |= MF_NOCLIPTHING; player->mo->flags |= MF_NOCLIPTHING;
player->nocontrol = 69; player->nocontrol = 69;
player->hyudorotimer = 69; player->hyudorotimer = 69;
player->speed = 0;
K_StripItems(player); K_StripItems(player);
player->faulttimer = TICRATE/3; player->faulttimer = TICRATE/3;
ClearFakePlayerSkin(player); ClearFakePlayerSkin(player);