mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-20 19:02:37 +00:00
Make starting boost timing compensate for latency
This commit is contained in:
parent
bc429ad4f8
commit
1bacc4e395
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…
Reference in a new issue