mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'scale-speed-to-weight-buff' into 'master'
Mobj scale weight buff from moving above top speed See merge request KartKrew/Kart!802
This commit is contained in:
commit
70cf67bd15
1 changed files with 1 additions and 1 deletions
|
|
@ -1508,7 +1508,7 @@ static fixed_t K_PlayerWeight(mobj_t *mobj, mobj_t *against)
|
||||||
weight = (mobj->player->kartweight) * FRACUNIT;
|
weight = (mobj->player->kartweight) * FRACUNIT;
|
||||||
|
|
||||||
if (mobj->player->speed > spd)
|
if (mobj->player->speed > spd)
|
||||||
weight += (mobj->player->speed - spd) / 8;
|
weight += FixedDiv((mobj->player->speed - spd), 8 * mapobjectscale);
|
||||||
|
|
||||||
if (mobj->player->itemtype == KITEM_BUBBLESHIELD)
|
if (mobj->player->itemtype == KITEM_BUBBLESHIELD)
|
||||||
weight += 9*FRACUNIT;
|
weight += 9*FRACUNIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue