polearm context
Move clearing of polearm context from migrate_to_lev() to lower level relmon(). Add missing transfer of polearm context from old mon to new mon in replmon(). These days it seems to only be used for creating a monster from saved traits, so polearm context in it should be moot.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 dog.c $NHDT-Date: 1596498159 2020/08/03 23:42:39 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.103 $ */
|
||||
/* NetHack 3.7 dog.c $NHDT-Date: 1599330917 2020/09/05 18:35:17 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.104 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2011. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -726,8 +726,6 @@ coord *cc; /* optional destination coordinates */
|
||||
mtmp->mux = new_lev.dnum;
|
||||
mtmp->muy = new_lev.dlevel;
|
||||
mtmp->mx = mtmp->my = 0; /* this implies migration */
|
||||
if (mtmp == g.context.polearm.hitmon)
|
||||
g.context.polearm.hitmon = (struct monst *) 0;
|
||||
}
|
||||
|
||||
/* return quality of food; the lower the better */
|
||||
|
||||
Reference in New Issue
Block a user