mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't double decrement long ringboosts
This commit is contained in:
parent
49c7618741
commit
8f56fafe6b
1 changed files with 11 additions and 7 deletions
18
src/k_kart.c
18
src/k_kart.c
|
|
@ -8402,14 +8402,18 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
player->ringdelay--;
|
||||
|
||||
if (P_PlayerInPain(player))
|
||||
player->ringboost = 0;
|
||||
{
|
||||
player->ringboost = 0;
|
||||
}
|
||||
else if (player->ringboost)
|
||||
player->ringboost--;
|
||||
|
||||
// These values can get FUCKED ever since ring-stacking speed changes.
|
||||
// If we're not activetly being awarded rings, roll off extreme ringboost durations.
|
||||
if (player->superring == 0)
|
||||
player->ringboost -= (player->ringboost / TICRATE / 2);
|
||||
{
|
||||
// These values can get FUCKED ever since ring-stacking speed changes.
|
||||
// If we're not actively being awarded rings, roll off extreme ringboost durations.
|
||||
if (player->superring == 0)
|
||||
player->ringboost -= max((player->ringboost / TICRATE / 2), 1);
|
||||
else
|
||||
player->ringboost--;
|
||||
}
|
||||
|
||||
if (player->sneakertimer)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue