]> granicus.if.org Git - nethack/commitdiff
C341-1 - don't make monsters angry if they enter non-hero regions
authorcohrs <cohrs>
Sun, 2 Mar 2003 05:33:45 +0000 (05:33 +0000)
committercohrs <cohrs>
Sun, 2 Mar 2003 05:33:45 +0000 (05:33 +0000)
this currently affects only regions created created by deads heros
found in bones files

doc/fixes35.0
src/region.c

index 1b5318965a03a141345839e6d594e451128db62e..78d3375f5eb606e325b33025007f74870c4a1a48 100644 (file)
@@ -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
index e4d12aff8e6f5946b51a15b00b19cec717ffc8ae..d3b5a6b0d5ca980844857d700a220b8c1a057f6a 100644 (file)
@@ -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;