From 00078cbedfcfbc2c031388e60406edeb73a9aa3f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Sep 2006 11:43:52 +0000 Subject: [PATCH] [E-Bugs] Drachen fressen beim Einflug in eine Region Bauern. - now checking for is_waiting. --- src/common/gamecode/monster.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/common/gamecode/monster.c b/src/common/gamecode/monster.c index 53b73c9bc..e9ce31068 100644 --- a/src/common/gamecode/monster.c +++ b/src/common/gamecode/monster.c @@ -763,14 +763,16 @@ monster_learn(unit *u) void monsters_kill_peasants(unit * u) { - if (u->race->flags & RCF_SCAREPEASANTS) { - scared_by_monster(u); - } - if (u->race->flags & RCF_KILLPEASANTS) { - eaten_by_monster(u); - } - if (u->race->flags & RCF_ABSORBPEASANTS) { - absorbed_by_monster(u); + if (!is_waiting(u)) { + if (u->race->flags & RCF_SCAREPEASANTS) { + scared_by_monster(u); + } + if (u->race->flags & RCF_KILLPEASANTS) { + eaten_by_monster(u); + } + if (u->race->flags & RCF_ABSORBPEASANTS) { + absorbed_by_monster(u); + } } }