From: Pasi Kallinen Date: Sun, 8 Mar 2020 18:01:39 +0000 (+0200) Subject: Fix flipping some monsters X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ea2fb742251aeeb4934765bea324b295a46e1a2;p=nethack 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. --- diff --git a/src/sp_lev.c b/src/sp_lev.c index 01f71001b..c0f5259e1 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -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)