diff --git a/src/common/kernel/build.c b/src/common/kernel/build.c index 6cac08448..ab90e311d 100644 --- a/src/common/kernel/build.c +++ b/src/common/kernel/build.c @@ -954,10 +954,10 @@ build_building(unit * u, const building_type * btype, int want, order * ord) btname = LOC(lang, btype->_name); - if (n-built <= 0) { + if (want-built <= 0) { /* gebäude fertig */ new_order = default_order(lang); - } else if (n!=INT_MAX) { + } else if (want!=INT_MAX) { /* reduzierte restgröße */ const char * hasspace = strchr(btname, ' '); if (hasspace) { diff --git a/src/common/kernel/unit.c b/src/common/kernel/unit.c index e9167de6f..91e6533fc 100644 --- a/src/common/kernel/unit.c +++ b/src/common/kernel/unit.c @@ -842,7 +842,6 @@ can_leave(unit * u) boolean leave(unit * u, boolean force) { - if (!force) { if (!can_leave(u)) return false; }