BTF_INDESTRUCTIBLE buildings were not indestructible
This commit is contained in:
Enno Rehling 2010-10-17 17:24:10 -07:00
parent b25d96a015
commit fa6ea0a626
1 changed files with 4 additions and 1 deletions

View File

@ -373,7 +373,10 @@ destroy_cmd(unit * u, struct order * ord)
if (u->building) { if (u->building) {
building *b = u->building; building *b = u->building;
if (n >= b->size) { if (fval(b->type, BTF_INDESTRUCTIBLE)) {
cmistake(u, ord, 138, MSG_PRODUCE);
return 0;
} if (n >= b->size) {
/* destroy completly */ /* destroy completly */
/* all units leave the building */ /* all units leave the building */
for (u2 = r->units; u2; u2 = u2->next) { for (u2 = r->units; u2; u2 = u2->next) {