C340-18 redux

Fix the test of otrapped in ohitmon pointed out by <Someone> that was causing
my previous fix to do the exact opposite of the intended behavior.
This commit is contained in:
cohrs
2004-08-07 16:06:58 +00:00
parent 2ad0b6ea0c
commit 7b42eff8d1
2 changed files with 2 additions and 1 deletions

View File

@@ -206,7 +206,7 @@ boolean verbose; /* give message(s) even when you can't see what happened */
? "destroyed" : "killed");
/* don't blame hero for unknown rolling boulder trap */
if (!context.mon_moving &&
(otmp->otyp != BOULDER || range >= 0 || !otmp->otrapped))
(otmp->otyp != BOULDER || range >= 0 || otmp->otrapped))
xkilled(mtmp,0);
else mondied(mtmp);
}