From 0e3d283508219feb7d5376c1df6afd3c7de29bf9 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 2 Mar 2003 05:33:45 +0000 Subject: [PATCH] C341-1 - don't make monsters angry if they enter non-hero regions this currently affects only regions created created by deads heros found in bones files --- doc/fixes35.0 | 1 + src/region.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 1b5318965..78d3375f5 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -2,6 +2,7 @@ $RCSfile$ $Revision$ $Date$ General Fixes and Modified Features ----------------------------------- +setmangry should not be called when a monster enters a bones region Platform- and/or Interface-Specific Fixes diff --git a/src/region.c b/src/region.c index e4d12aff8..d3b5a6b0d 100644 --- a/src/region.c +++ b/src/region.c @@ -925,7 +925,7 @@ genericptr_t p2; if (!nonliving(mtmp->data) && !breathless(mtmp->data)) { if (cansee(mtmp->mx, mtmp->my)) pline("%s coughs!", Monnam(mtmp)); - setmangry(mtmp); + if (heros_fault(reg)) setmangry(mtmp); if (haseyes(mtmp->data) && mtmp->mcansee) { mtmp->mblinded = 1; mtmp->mcansee = 0; -- 2.40.0