mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 05:51:58 +00:00
Quickly dump rings out of pending payouts
This commit is contained in:
parent
c5e9f3addd
commit
d83eefe410
1 changed files with 14 additions and 2 deletions
16
src/k_kart.c
16
src/k_kart.c
|
|
@ -13289,11 +13289,23 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
P_SetOrigin(ring, ring->x, ring->y, ring->z);
|
||||
ring->extravalue1 = 1;
|
||||
|
||||
player->rings--;
|
||||
UINT8 dumprate = 3;
|
||||
|
||||
// Allow players to spend out of pending payout to "dump" rings faster.
|
||||
if (player->superring)
|
||||
{
|
||||
player->superring--;
|
||||
dumprate = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
player->rings--;
|
||||
}
|
||||
|
||||
if (player->autoring && !(cmd->buttons & BT_ATTACK))
|
||||
player->ringdelay = tiereddelay;
|
||||
else
|
||||
player->ringdelay = 3;
|
||||
player->ringdelay = dumprate;
|
||||
|
||||
if (player->rings == 0)
|
||||
K_Overdrive(player);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue