forked from github/server
"Übergabe an TEMP hat nicht geklappt" Keine GIB ausfuehren, wenn die Einheit 0 Personen hat.
This commit is contained in:
parent
eedb4e1ae9
commit
51f0aacb96
|
@ -1067,8 +1067,9 @@ economics(region *r)
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
order * ord;
|
order * ord;
|
||||||
boolean destroyed = false;
|
boolean destroyed = false;
|
||||||
for (ord = u->orders; ord; ord = ord->next) {
|
if (u->number>0) {
|
||||||
switch (get_keyword(ord)) {
|
for (ord = u->orders; ord; ord = ord->next) {
|
||||||
|
switch (get_keyword(ord)) {
|
||||||
case K_DESTROY:
|
case K_DESTROY:
|
||||||
if (!destroyed) {
|
if (!destroyed) {
|
||||||
if (destroy_cmd(u, ord)!=0) ord = NULL;
|
if (destroy_cmd(u, ord)!=0) ord = NULL;
|
||||||
|
@ -1085,8 +1086,9 @@ economics(region *r)
|
||||||
forget_cmd(u, ord);
|
forget_cmd(u, ord);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (u->orders==NULL) break;
|
||||||
}
|
}
|
||||||
if (u->orders==NULL) break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* RECRUIT orders */
|
/* RECRUIT orders */
|
||||||
|
|
Loading…
Reference in New Issue