Fix scaling mistake in A_FishJump

This commit is contained in:
MascaraSnake 2023-01-04 08:58:40 +01:00
parent 71736f358f
commit 5bbfb1840a

View file

@ -4859,12 +4859,12 @@ void A_FishJump(mobj_t *actor)
else
{
if (actor->spawnpoint && actor->spawnpoint->args[0])
jumpval = actor->spawnpoint->args[0];
jumpval = actor->spawnpoint->args[0] << (FRACBITS - 2);
else
jumpval = 44;
jumpval = 44 << (FRACBITS - 2);
}
actor->momz = FixedMul(jumpval << (FRACBITS - 2), actor->scale);
actor->momz = FixedMul(jumpval, actor->scale);
P_SetMobjStateNF(actor, actor->info->seestate);
}