diasurgical / devilution

Diablo devolved - magic behind the 1996 computer game
Other
8.66k stars 921 forks source link

monster: add BUGFIX for MAI_Fallen, invalid out-of-bounds check #2262

Closed mewmew closed 2 years ago

mewmew commented 2 years ago

The out-of-bounds check in MAI_Fallen checks whether the relative offset coordinates (x, y) are out of bounds, rather than the absoulte coordinate (xpos, ypos) which is used for array access into dMonster.

qndel commented 2 years ago

just like scavenger AI, yay

AJenbo commented 2 years ago

I did feel like there flee pattern still didn't really make sens, this might be why :)