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);
|
btname = LOC(lang, btype->_name);
|
||||||
|
|
||||||
if (n-built <= 0) {
|
if (want-built <= 0) {
|
||||||
/* gebäude fertig */
|
/* gebäude fertig */
|
||||||
new_order = default_order(lang);
|
new_order = default_order(lang);
|
||||||
} else if (n!=INT_MAX) {
|
} else if (want!=INT_MAX) {
|
||||||
/* reduzierte restgröße */
|
/* reduzierte restgröße */
|
||||||
const char * hasspace = strchr(btname, ' ');
|
const char * hasspace = strchr(btname, ' ');
|
||||||
if (hasspace) {
|
if (hasspace) {
|
||||||
|
|
|
@ -842,7 +842,6 @@ can_leave(unit * u)
|
||||||
boolean
|
boolean
|
||||||
leave(unit * u, boolean force)
|
leave(unit * u, boolean force)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!force) {
|
if (!force) {
|
||||||
if (!can_leave(u)) return false;
|
if (!can_leave(u)) return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue