From c7bcdb69b185b239852ef6fa57aeeda5e86ceb3e Mon Sep 17 00:00:00 2001 From: KUDr Date: Tue, 13 Mar 2007 21:04:22 +0000 Subject: (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) --- src/train_cmd.cpp | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3-70-g09d2