Fix flipping some monsters

Don't flip the guard waiting to be disposed of.
Don't flip the occasional monster (usually an earth elemental)
outside the level bounds.
This commit is contained in:
Pasi Kallinen
2020-03-08 20:01:39 +02:00
parent feb85ad83c
commit 9ea2fb7422

View File

@@ -527,6 +527,12 @@ boolean extras;
/* monsters */
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
if (mtmp->isgd && mtmp->mx == 0)
continue;
/* skip the occasional earth elemental outside the flip area */
if (mtmp->mx < minx || mtmp->mx > maxx
|| mtmp->my < miny || mtmp->my > maxy)
continue;
if (flp & 1) {
mtmp->my = FlipY(mtmp->my);
if (mtmp->ispriest)