Make starting boost timing compensate for latency

This commit is contained in:
fickleheart 2019-01-08 20:27:54 -06:00
parent bc429ad4f8
commit 1bacc4e395
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}