mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'cap-spindash-thrust' into 'master'
Cap spindash thrust according to max charge time See merge request kart-krew-dev/ring-racers-internal!2717
This commit is contained in:
commit
07e7c00fb5
1 changed files with 1 additions and 1 deletions
|
|
@ -13329,7 +13329,7 @@ static void K_KartSpindash(player_t *player)
|
|||
// if spindash was charged enough, give a small thrust.
|
||||
if (player->spindash >= SPINDASHTHRUSTTIME)
|
||||
{
|
||||
fixed_t thrust = FixedMul(player->mo->scale, player->spindash*FRACUNIT/5);
|
||||
fixed_t thrust = FixedMul(player->mo->scale, min(player->spindash, MAXCHARGETIME)*FRACUNIT/5);
|
||||
|
||||
// Old behavior, before emergency zero-ring spindash
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue