OSDN Git Service

no multi-level fall through
authorunknown <shira@.(none)>
Mon, 19 Sep 2011 18:46:23 +0000 (03:46 +0900)
committerunknown <shira@.(none)>
Mon, 19 Sep 2011 18:46:23 +0000 (03:46 +0900)
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;
 
        /* 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);
 
        if(td) {
            struct trap *t=t_at(u.ux,u.uy);