Skip to content

Commit

Permalink
Undo CanMove() inaccuracy introduced in commit ed9b6f2
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir authored and nukeykt committed Sep 5, 2023
1 parent 68aaebc commit e1fc178
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/blood/src/ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,17 @@ bool CanMove(spritetype *pSprite, int a2, int nAngle, int nRange)
if (Underwater)
return true;
break;
case kDudeCerberusTwoHead:
case kDudeCerberusOneHead:
if (VanillaMode())
{
if (Crusher)
return false;
if ((nXSector < 0 || (!xsector[nXSector].Underwater && !xsector[nXSector].Depth)) && floorZ - bottom > 0x2000)
return false;
break;
}
fallthrough__;
case kDudeCerberusTwoHead:
// by NoOne: a quick fix for Cerberus spinning in E3M7-like maps, where damage sectors is used.
// It makes ignore danger if enemy immune to N damageType. As result Cerberus start acting like
// in Blood 1.0 so it can move normally to player. It's up to you for adding rest of enemies here as
Expand Down

0 comments on commit e1fc178

Please sign in to comment.