mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-20 15:02:37 +00:00
Merge branch 'frozen-position-number' into 'master'
Update positiondelay during hitlag See merge request KartKrew/Kart!922
This commit is contained in:
commit
aaffc84242
1 changed files with 3 additions and 3 deletions
|
|
@ -7152,6 +7152,9 @@ void K_KartPlayerHUDUpdate(player_t *player)
|
||||||
if (player->karthud[khud_trickcool])
|
if (player->karthud[khud_trickcool])
|
||||||
player->karthud[khud_trickcool]--;
|
player->karthud[khud_trickcool]--;
|
||||||
|
|
||||||
|
if (player->positiondelay)
|
||||||
|
player->positiondelay--;
|
||||||
|
|
||||||
if (!(player->pflags & PF_FAULT))
|
if (!(player->pflags & PF_FAULT))
|
||||||
player->karthud[khud_fault] = 0;
|
player->karthud[khud_fault] = 0;
|
||||||
else if (player->karthud[khud_fault] > 0 && player->karthud[khud_fault] <= 2*TICRATE)
|
else if (player->karthud[khud_fault] > 0 && player->karthud[khud_fault] <= 2*TICRATE)
|
||||||
|
|
@ -10111,9 +10114,6 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->positiondelay)
|
|
||||||
player->positiondelay--;
|
|
||||||
|
|
||||||
// Prevent ring misfire
|
// Prevent ring misfire
|
||||||
if (!(cmd->buttons & BT_ATTACK))
|
if (!(cmd->buttons & BT_ATTACK))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue