]> granicus.if.org Git - nethack/commitdiff
Fix bz276,H4172: Fleeing monsters don't actually flee
authorPasi Kallinen <paxed@alt.org>
Tue, 5 Jan 2016 10:09:40 +0000 (12:09 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 5 Jan 2016 10:09:43 +0000 (12:09 +0200)
This fix comes via DynaHack by Tung Nguyen.

src/monmove.c

index 8fc93b7450474330791266abc366937e14d072d4..cae22b8b5d8a3a2b5b61d44dc6d300287ea19851 100644 (file)
@@ -271,6 +271,8 @@ boolean fleemsg;
         }
         mtmp->mflee = 1;
     }
+    /* ignore recently-stepped spaces when made to flee */
+    memset(mtmp->mtrack, MTSZ, sizeof(coord));
 }
 
 STATIC_OVL void