]> granicus.if.org Git - nethack/commitdiff
Fix the force_mintrap
authorPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 17:11:32 +0000 (19:11 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 23 Feb 2022 17:11:32 +0000 (19:11 +0200)
src/dothrow.c

index fa42311be8b623ec858432cbd75eab031f53453a..da6f311099effda97160743a38da7cdd453a0fe4 100644 (file)
@@ -929,9 +929,9 @@ mhurtle_step(genericptr_t arg, int x, int y)
         place_monster(mon, x, y);
         newsym(mon->mx, mon->my);
         set_apparxy(mon);
-        g.force_mintrap = TRUE;
+        ++g.force_mintrap;
         res = mintrap(mon);
-        g.force_mintrap = FALSE;
+        --g.force_mintrap;
         if (res == Trap_Killed_Mon || res == Trap_Caught_Mon)
             return FALSE;
         return TRUE;