From 3d98275d584ac83d8db2dc7cbf9fec502bbc7124 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 9 Mar 2011 20:51:11 +0100 Subject: [PATCH] we never checked if building maintenance was paid (see also #1740) --- src/kernel/move.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/kernel/move.c b/src/kernel/move.c index ed5aeb4c1..11aa94f86 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -1637,11 +1637,8 @@ buildingtype_exists(const region * r, const building_type * bt, boolean working) building *b; for (b = rbuildings(r); b; b = b->next) { - if (b->type == bt) { - if (b->size >= bt->maxsize) { - return true; - } - } + if (b->type == bt && b->size >= bt->maxsize && (!working || fval(b, BLD_WORKING))) + return true; } return false;