Add a missing break

Stepping on a magic trap while riding could delete the trap and
make the deleted trap hit the steed.
This commit is contained in:
Pasi Kallinen
2015-02-20 20:26:46 +02:00
parent 0d9ae1d293
commit ce0665cd15
2 changed files with 2 additions and 0 deletions

View 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

View 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);