Verlassen von Schiffen und Attackieren in der gleichen Runde

Eine Lösung für das Problem, die alle Leute, die aus Schiffen aussteigen, die komplette Runde über sichtbar machen (und erst kurz vor der Reportgenerierung wieder versteckt).
This commit is contained in:
Enno Rehling 2005-04-28 17:11:32 +00:00
parent 9503038f69
commit 764b1ddf72
2 changed files with 3 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ cansee(const faction * f, const region * r, const unit * u, int modifier)
return false;
} else if (u->number == 0) {
attrib *a = a_find(u->attribs, &at_creator);
if(a) { /* u is an empty temporary unit. In this special case
if (a) { /* u is an empty temporary unit. In this special case
we look at the creating unit. */
u = (unit *)a->data.v;
} else {
@ -1052,6 +1052,7 @@ cansee(const faction * f, const region * r, const unit * u, int modifier)
}
}
if (leftship(u)) return true;
if (itype_grail==(const item_type *)0xdeadbeef) itype_grail = it_find("grail");
if (itype_grail!=NULL && i_get(u->items, itype_grail)) return true;

View File

@ -939,6 +939,7 @@ seen_done(seen_region * seehash[])
reuse = seehash[i];
seehash[i] = NULL;
}
free(seehash);
}
void