- fixed bad collision state check in movesprite.

Fixes #147
This commit is contained in:
Christoph Oelckers 2020-10-24 21:36:27 +02:00
parent aeda977bc2
commit 1a21e73cd9
2 changed files with 2 additions and 2 deletions

View file

@ -601,7 +601,7 @@ int movesprite_ex_d(DDukeActor* actor, int xchange, int ychange, int zchange, un
if (dasectnum < 0) dasectnum = 0; if (dasectnum < 0) dasectnum = 0;
return result.setSector(dasectnum); return result.setSector(dasectnum);
} }
if ((retval & kHitTypeMask) != kHitSector && (actor->cgg == 0)) spri->ang += 768; if ((retval & kHitTypeMask) > kHitSector && (actor->cgg == 0)) spri->ang += 768;
} }
else else
{ {

View file

@ -428,7 +428,7 @@ int movesprite_ex_r(DDukeActor* actor, int xchange, int ychange, int zchange, un
if (dasectnum < 0) dasectnum = 0; if (dasectnum < 0) dasectnum = 0;
return result.setSector(dasectnum); return result.setSector(dasectnum);
} }
if ((retval & kHitTypeMask) != kHitSector && (actor->cgg == 0)) spri->ang += 768; if ((retval & kHitTypeMask) > kHitSector && (actor->cgg == 0)) spri->ang += 768;
} }
else else
{ {