forked from github/server
BTF_INDESTRUCTIBLE buildings were not indestructible
This commit is contained in:
parent
b25d96a015
commit
fa6ea0a626
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue