From: Pasi Kallinen Date: Sat, 23 Jan 2021 09:32:54 +0000 (+0200) Subject: Fix leftover variables from trap refactor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0516fa9e35ea463947e6af01473c195293fd9ce5;p=nethack Fix leftover variables from trap refactor --- diff --git a/src/trap.c b/src/trap.c index 792169387..70d655ec9 100644 --- a/src/trap.c +++ b/src/trap.c @@ -3071,8 +3071,7 @@ register struct monst *mtmp; } } else { register int tt = trap->ttyp; - boolean in_sight, see_it, - inescapable = (g.force_mintrap + boolean inescapable = (g.force_mintrap || ((tt == HOLE || tt == PIT) && Sokoban && !trap->madeby_u)); @@ -3093,12 +3092,6 @@ register struct monst *mtmp; if (trap->madeby_u && rnl(5)) setmangry(mtmp, TRUE); - in_sight = canseemon(mtmp); - see_it = cansee(mtmp->mx, mtmp->my); - /* assume hero can tell what's going on for the steed */ - if (mtmp == u.usteed) - in_sight = TRUE; - return trapeffect_selector(mtmp, trap, 0); } if (trapkilled)