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,13 +1082,18 @@ make_route(unit * u, order * ord, region_list ** routep)
current = next; current = next;
token = getstrtoken(); token = getstrtoken();
error = movewhere(u, token, current, &next); if (token[0]) {
if (error) { error = movewhere(u, token, current, &next);
message * msg = movement_error(u, token, ord, error); if (error) {
if (msg!=NULL) { message * msg = movement_error(u, token, ord, error);
add_message(&u->faction->msgs, msg); if (msg!=NULL) {
msg_release(msg); add_message(&u->faction->msgs, msg);
msg_release(msg);
}
next = NULL;
break;
} }
} else {
next = NULL; next = NULL;
break; break;
} }