bugfix drachen targets

This commit is contained in:
Katja Zedel 2001-02-04 11:34:52 +00:00
parent 79679d995f
commit a5ab753b1c
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* 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 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -877,7 +877,7 @@ plan_monsters(void)
ta = a_find(u->attribs, &at_targetregion); ta = a_find(u->attribs, &at_targetregion);
if (ta!=NULL) { if (ta!=NULL) {
tr = findregion(ta->data.sa[0], ta->data.sa[1]); tr = (region *) ta->data.v;
if (tr != r) is_moving = true; if (tr != r) is_moving = true;
} }
@ -937,7 +937,7 @@ plan_monsters(void)
} }
else ta = a_find(u->attribs, &at_targetregion); else ta = a_find(u->attribs, &at_targetregion);
if (ta!=NULL) { 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)) { if (tr==NULL || !path_exists(r, tr, DRAGON_RANGE, allowed_dragon)) {
ta = set_new_dragon_target(u, r, DRAGON_RANGE); ta = set_new_dragon_target(u, r, DRAGON_RANGE);
if (ta) tr = findregion(ta->data.sa[0], ta->data.sa[1]); if (ta) tr = findregion(ta->data.sa[0], ta->data.sa[1]);