forked from github/server
wormhole:
- Kosmetik, Wurmloch verschwindet nach der Reise
This commit is contained in:
parent
cb586eb88e
commit
a0cf754775
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue