From a5ab753b1c93edd0531786f7edac966ac0d38763 Mon Sep 17 00:00:00 2001 From: Katja Zedel Date: Sun, 4 Feb 2001 11:34:52 +0000 Subject: [PATCH] bugfix drachen targets --- src/common/gamecode/monster.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/gamecode/monster.c b/src/common/gamecode/monster.c index 0d6c1eae5..d1eeb276e 100644 --- a/src/common/gamecode/monster.c +++ b/src/common/gamecode/monster.c @@ -1,6 +1,6 @@ /* vi: set ts=2: * - * $Id: monster.c,v 1.7 2001/02/04 10:27:34 katze Exp $ + * $Id: monster.c,v 1.8 2001/02/04 11:34:52 katze Exp $ * Eressea PB(E)M host Copyright (C) 1998-2000 * Christian Schlittchen (corwin@amber.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de) @@ -877,7 +877,7 @@ plan_monsters(void) ta = a_find(u->attribs, &at_targetregion); if (ta!=NULL) { - tr = findregion(ta->data.sa[0], ta->data.sa[1]); + tr = (region *) ta->data.v; if (tr != r) is_moving = true; } @@ -937,7 +937,7 @@ plan_monsters(void) } else ta = a_find(u->attribs, &at_targetregion); if (ta!=NULL) { - tr = findregion(ta->data.sa[0], ta->data.sa[1]); + tr = (region *) ta->data.v; if (tr==NULL || !path_exists(r, tr, DRAGON_RANGE, allowed_dragon)) { ta = set_new_dragon_target(u, r, DRAGON_RANGE); if (ta) tr = findregion(ta->data.sa[0], ta->data.sa[1]);