From dc29db155ae88307f778c9e582cdca8733f14570 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 20 Sep 2011 03:46:23 +0900 Subject: [PATCH] no multi-level fall through --- src/trap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/trap.c b/src/trap.c index d336276..0b7b2a8 100644 --- a/src/trap.c +++ b/src/trap.c @@ -330,9 +330,7 @@ boolean td; /* td == TRUE : trap door or hole */ /* KMH -- You can't escape the Sokoban level traps */ if(Blind && Levitation && !In_sokoban(&u.uz)) return; - do { - newlevel++; - } while(!rn2(4) && newlevel < dunlevs_in_dungeon(&u.uz)); + newlevel++; if(td) { struct trap *t=t_at(u.ux,u.uy); -- 2.11.0