forked from github/server
fix a serious issue where repeated orders were getting lost
This commit is contained in:
parent
b95f7ec139
commit
504a70a9c6
1 changed files with 29 additions and 26 deletions
|
@ -291,7 +291,8 @@ static unit *unitorders(FILE * F, int enc, struct faction *f)
|
|||
if (s == NULL)
|
||||
break;
|
||||
|
||||
if (s[0] && s[0]!='@') {
|
||||
if (s[0]) {
|
||||
if (s[0]!='@') {
|
||||
const char *stok = s;
|
||||
stok = parse_token(&stok);
|
||||
|
||||
|
@ -322,12 +323,14 @@ static unit *unitorders(FILE * F, int enc, struct faction *f)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Nun wird der Befehl erzeut und eingehängt */
|
||||
*ordp = parse_order(s, u->faction->locale);
|
||||
if (*ordp)
|
||||
if (*ordp) {
|
||||
ordp = &(*ordp)->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
/* cmistake(?, buf, 160, MSG_EVENT); */
|
||||
|
|
Loading…
Reference in a new issue