mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 09:12:22 +00:00
Merge branch 'fast-ringbox-dump' into 'master'
Fast ringbox dump See merge request kart-krew-dev/ring-racers-internal!2516
This commit is contained in:
commit
65c41cf6ce
1 changed files with 14 additions and 2 deletions
16
src/k_kart.c
16
src/k_kart.c
|
|
@ -13365,11 +13365,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