Merge branch 'fishjumpbinaryfix' into 'next'

Fix A_FishJump for custom objects in binary maps

Closes #1019

See merge request STJr/SRB2!2035
This commit is contained in:
sphere 2023-07-14 13:16:55 +00:00
commit 93fa653f80

View file

@ -4886,7 +4886,9 @@ void A_FishJump(mobj_t *actor)
jumpval = locvar1; jumpval = locvar1;
else else
{ {
if (actor->spawnpoint && actor->spawnpoint->args[0]) if (!udmf && actor->angle)
jumpval = AngleFixed(actor->angle)>>2;
else if (actor->spawnpoint && actor->spawnpoint->args[0])
jumpval = actor->spawnpoint->args[0] << (FRACBITS - 2); jumpval = actor->spawnpoint->args[0] << (FRACBITS - 2);
else else
jumpval = 44 << (FRACBITS - 2); jumpval = 44 << (FRACBITS - 2);