From: Pasi Kallinen Date: Wed, 23 Feb 2022 17:11:32 +0000 (+0200) Subject: Fix the force_mintrap X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=645720d1bc2c5bc4eff14f48b451e626942143b0;p=nethack Fix the force_mintrap --- diff --git a/src/dothrow.c b/src/dothrow.c index fa42311be..da6f31109 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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;