From 70237ce12f90304c28ae4c5097668ba86beb573d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 1 Jan 2005 11:47:59 +0000 Subject: [PATCH] =?UTF-8?q?Unn=C3=B6tige=20Fehlermeldungen=20am=20Ende=20v?= =?UTF-8?q?on=20Routen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/movement.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/common/kernel/movement.c b/src/common/kernel/movement.c index 2ab073276..732266d42 100644 --- a/src/common/kernel/movement.c +++ b/src/common/kernel/movement.c @@ -1082,13 +1082,18 @@ make_route(unit * u, order * ord, region_list ** routep) current = next; token = getstrtoken(); - error = movewhere(u, token, current, &next); - if (error) { - message * msg = movement_error(u, token, ord, error); - if (msg!=NULL) { - add_message(&u->faction->msgs, msg); - msg_release(msg); + if (token[0]) { + error = movewhere(u, token, current, &next); + if (error) { + message * msg = movement_error(u, token, ord, error); + if (msg!=NULL) { + add_message(&u->faction->msgs, msg); + msg_release(msg); + } + next = NULL; + break; } + } else { next = NULL; break; }