Unnötige Fehlermeldungen am Ende von Routen.

This commit is contained in:
Enno Rehling 2005-01-01 11:47:59 +00:00
parent 7fdbce4161
commit 70237ce12f

View file

@ -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;
}
} }
} }