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;
|
wormhole_data * data = (wormhole_data*)a->data.v;
|
||||||
int maxtransport = data->entry->size;
|
int maxtransport = data->entry->size;
|
||||||
|
|
||||||
if (data->entry->size==0) {
|
|
||||||
destroy_building(data->entry);
|
|
||||||
} else {
|
|
||||||
region * r = data->entry->region;
|
region * r = data->entry->region;
|
||||||
unit * u = r->units;
|
unit * u = r->units;
|
||||||
|
|
||||||
|
@ -94,8 +90,8 @@ wormhole_age(struct attrib * a)
|
||||||
add_message(&u->faction->msgs, m);
|
add_message(&u->faction->msgs, m);
|
||||||
msg_release(m);
|
msg_release(m);
|
||||||
}
|
}
|
||||||
data->entry->size = 0;
|
|
||||||
}
|
destroy_building(data->entry);
|
||||||
|
|
||||||
/* age returns 0 if the attribute needs to be removed, !=0 otherwise */
|
/* age returns 0 if the attribute needs to be removed, !=0 otherwise */
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue