]> granicus.if.org Git - nethack/commitdiff
Add a missing break
authorPasi Kallinen <paxed@alt.org>
Fri, 20 Feb 2015 18:26:46 +0000 (20:26 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 20 Feb 2015 18:26:46 +0000 (20:26 +0200)
Stepping on a magic trap while riding could delete the trap and
make the deleted trap hit the steed.

doc/fixes35.0
src/trap.c

index 5c98db4141802e4eb3a69e498713c0eab4bdba85..5aaa60013bfba450cf7448f25638a9ffe465f642 100644 (file)
@@ -856,6 +856,7 @@ fix "object_is_local" panic when saving bones after hero is killed by explosion
        produced by dropped or thrown lit potion of oil
 if lava burns up the player's water walking boots, the player falls in
 the messages for lava burning items up are always printed
+fix used-up magic trap trying to hit steed.
 
 
 Platform- and/or Interface-Specific Fixes
index e33b57730baf5687f04ac9b7c592266a35b00e53..232e4832e3b2b67f1b95882b1c850043de8a0617 100644 (file)
@@ -1213,6 +1213,7 @@ glovecheck:               (void) rust_dmg(uarmg, "gauntlets", 1, TRUE, &youmonst);
                    losehp(rnd(10), "magical explosion", KILLED_BY_AN);
                    Your("body absorbs some of the magical energy!");
                    u.uen = (u.uenmax += 2);
+                   break;
                } else domagictrap();
 #ifdef STEED
                (void) steedintrap(trap, (struct obj *)0);