Use defined type for wavedash charge calcs

This commit is contained in:
AJ Martinez 2023-05-30 04:54:51 -07:00
parent 3187294deb
commit 8c08f759ac

View file

@ -9471,7 +9471,7 @@ static void K_KartDrift(player_t *player, boolean onground)
if (!keepsliptide)
{
// Give charge proportional to your angle. Sharp turns are rewarding, slow analog slides are not—remember, this is giving back the speed you gave up.
int addCharge = FixedInt(
UINT16 addCharge = FixedInt(
FixedMul(10*FRACUNIT,
FixedDiv(abs(player->steering)*FRACUNIT, (9*KART_FULLTURN/10)*FRACUNIT)
));