forked from github/server
Unnötige Fehlermeldungen am Ende von Routen.
This commit is contained in:
parent
7fdbce4161
commit
70237ce12f
1 changed files with 11 additions and 6 deletions
|
@ -1082,6 +1082,7 @@ make_route(unit * u, order * ord, region_list ** routep)
|
||||||
|
|
||||||
current = next;
|
current = next;
|
||||||
token = getstrtoken();
|
token = getstrtoken();
|
||||||
|
if (token[0]) {
|
||||||
error = movewhere(u, token, current, &next);
|
error = movewhere(u, token, current, &next);
|
||||||
if (error) {
|
if (error) {
|
||||||
message * msg = movement_error(u, token, ord, error);
|
message * msg = movement_error(u, token, ord, error);
|
||||||
|
@ -1092,6 +1093,10 @@ make_route(unit * u, order * ord, region_list ** routep)
|
||||||
next = NULL;
|
next = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
next = NULL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue