wormhole:

- Kosmetik, Wurmloch verschwindet nach der Reise
This commit is contained in:
Enno Rehling 2004-02-22 00:15:13 +00:00
parent cb586eb88e
commit a0cf754775
1 changed files with 15 additions and 19 deletions

View File

@ -74,10 +74,6 @@ wormhole_age(struct attrib * a)
{
wormhole_data * data = (wormhole_data*)a->data.v;
int maxtransport = data->entry->size;
if (data->entry->size==0) {
destroy_building(data->entry);
} else {
region * r = data->entry->region;
unit * u = r->units;
@ -94,8 +90,8 @@ wormhole_age(struct attrib * a)
add_message(&u->faction->msgs, m);
msg_release(m);
}
data->entry->size = 0;
}
destroy_building(data->entry);
/* age returns 0 if the attribute needs to be removed, !=0 otherwise */
return -1;