From fa6ea0a626aa1b3b703f060f1917e3c783a649a7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 17 Oct 2010 17:24:10 -0700 Subject: [PATCH] http://bugs.eressea.de/view.php?id=1811 BTF_INDESTRUCTIBLE buildings were not indestructible --- src/kernel/build.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kernel/build.c b/src/kernel/build.c index cd70206ff..12979a85d 100644 --- a/src/kernel/build.c +++ b/src/kernel/build.c @@ -373,7 +373,10 @@ destroy_cmd(unit * u, struct order * ord) if (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 */ /* all units leave the building */ for (u2 = r->units; u2; u2 = u2->next) {