mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make starting boost timing compensate for latency
This commit is contained in:
parent
f7aa9ebb25
commit
955e0ad8c9
1 changed files with 5 additions and 0 deletions
|
|
@ -5487,7 +5487,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (leveltime >= starttime-(2*TICRATE) && leveltime <= starttime)
|
||||
{
|
||||
if (cmd->buttons & BT_ACCELERATE)
|
||||
{
|
||||
if (player->kartstuff[k_boostcharge] == 0)
|
||||
player->kartstuff[k_boostcharge] = cmd->latency;
|
||||
|
||||
player->kartstuff[k_boostcharge]++;
|
||||
}
|
||||
else
|
||||
player->kartstuff[k_boostcharge] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue