summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-03-13 21:04:22 +0000
committerKUDr <kudr@openttd.org>2007-03-13 21:04:22 +0000
commitc7bcdb69b185b239852ef6fa57aeeda5e86ceb3e (patch)
tree2931e9c25ff6cd459930587b5a7a10296a0ff53c /src
parente3f73943f6731885fcb3bbb433e05ec0b0790532 (diff)
downloadopenttd-c7bcdb69b185b239852ef6fa57aeeda5e86ceb3e.tar.xz
(svn r9146) -Fix [NTP][FS#676](r6800): "Train is lost" message is generated incorrectly. Forgot to set the best bird distance to zero in case we found the destination to indicate success. (de_zeurkous)
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index e00f03e92..baef70d2c 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2158,6 +2158,7 @@ static bool NtpCallbFindStation(TileIndex tile, TrainTrackFollowerData *ttfd, Tr
* approximation of where the station is */
// found station
ttfd->best_track = track;
+ ttfd->best_bird_dist = 0;
return true;
} else {
// didn't find station, keep track of the best path so far.