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:
James R 2022-12-09 04:13:54 +00:00
commit 70cf67bd15

View file

@ -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;