Dropping items disturbs buried zombies

This commit is contained in:
Pasi Kallinen
2023-11-02 20:31:51 +02:00
parent e6993f2ef1
commit 852f8e4996
3 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;