diff --git a/include/extern.h b/include/extern.h index 375631468..80c7347d7 100644 --- a/include/extern.h +++ b/include/extern.h @@ -993,6 +993,7 @@ extern boolean test_move(coordxy, coordxy, coordxy, coordxy, int); extern int wiz_debug_cmd_traveldisplay(void); #endif extern boolean u_rooted(void); +extern void check_buried_zombies(coordxy, coordxy); extern boolean u_maybe_impaired(void); extern const char *u_locomotion(const char *); extern void handle_tip(int); diff --git a/src/do.c b/src/do.c index 75f6bee66..9f8492316 100644 --- a/src/do.c +++ b/src/do.c @@ -305,6 +305,7 @@ flooreffects(struct obj *obj, coordxy x, coordxy y, const char *verb) && cansee(x,y)) { doaltarobj(obj); } + check_buried_zombies(x, y); gb.bhitpos = save_bhitpos; return res; diff --git a/src/hack.c b/src/hack.c index 59be98d5d..c466e5583 100644 --- a/src/hack.c +++ b/src/hack.c @@ -12,7 +12,6 @@ static int moverock(void); static void dosinkfall(void); static boolean findtravelpath(int); static boolean trapmove(coordxy, coordxy, struct trap *); -static void check_buried_zombies(coordxy, coordxy); static schar u_simple_floortyp(coordxy, coordxy); static boolean swim_move_danger(coordxy, coordxy); static boolean domove_bump_mon(struct monst *, int); @@ -1594,7 +1593,7 @@ u_rooted(void) } /* reduce zombification timeout of buried zombies around px, py */ -static void +void check_buried_zombies(coordxy x, coordxy y) { struct obj *otmp;