From 4660c690a877841a3810d5c516eb2593b803f1b2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 18 Nov 2005 21:12:27 +0000 Subject: [PATCH] wyrms don't make room for upstart newcomers. --- src/common/gamecode/monster.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/gamecode/monster.c b/src/common/gamecode/monster.c index 5b0a3b217..bc2a7f4b8 100644 --- a/src/common/gamecode/monster.c +++ b/src/common/gamecode/monster.c @@ -848,6 +848,10 @@ plan_dragon(unit * u) unit * u2; for (u2=r->units;u2;u2=u2->next) { /* wyrme sind einzelgänger */ + if (u2==u) { + /* we do not make room for newcomers, so we don't need to look at them */ + break; + } if (u2!=u && u2->race==u->race && chance(0.5)) { move = true; break;