OSDN Git Service
(root)
/
nethackexpress
/
trunk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
no multi-level fall through
[nethackexpress/trunk.git]
/
src
/
trap.c
diff --git
a/src/trap.c
b/src/trap.c
index
d336276
..
0b7b2a8
100644
(file)
--- 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);