forked from github/server
parent
871088807a
commit
030832c20e
|
@ -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) {
|
||||
|
|
|
@ -842,7 +842,6 @@ can_leave(unit * u)
|
|||
boolean
|
||||
leave(unit * u, boolean force)
|
||||
{
|
||||
|
||||
if (!force) {
|
||||
if (!can_leave(u)) return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue