OSDN Git Service

no multi-level fall through
[nethackexpress/trunk.git] / src / trap.c
index d336276..0b7b2a8 100644 (file)
@@ -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);