- handle the only two occurences of add_int_ang in Blood.

This commit is contained in:
Christoph Oelckers 2022-09-11 14:03:30 +02:00
parent 72dc3d5da9
commit f7fdbcaa59

View file

@ -3459,8 +3459,8 @@ void useSectorWindGen(DBloodActor* sourceactor, sectortype* pSector)
sourceactor->set_int_ang(nnExtRandom(-kAng360, kAng360) & 2047);
}
}
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_FORWARD) sourceactor->add_int_ang(sourceactor->xspr.data4);
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_REVERSE) sourceactor->add_int_ang(-sourceactor->xspr.data4);
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_FORWARD) sourceactor->spr.angle += mapangle(sourceactor->xspr.data4);
else if (sourceactor->spr.cstat & CSTAT_SPRITE_MOVE_REVERSE) sourceactor->spr.angle -= mapangle(sourceactor->xspr.data4);
else if (sourceactor->xspr.sysData1 == 0)
{
if ((ang += sourceactor->xspr.data4) >= kAng180) sourceactor->xspr.sysData1 = 1;