(svn r7804) [cbh] - Fix: [NTP] suppress false 'Train is lost' message if destination tile was found custombridgeheads
authorKUDr
Wed, 03 Jan 2007 20:00:29 +0000
branchcustombridgeheads
changeset 5647 cbde85c8c878
parent 5646 2b8e95ff2022
child 5648 1608018c5ff2
(svn r7804) [cbh] - Fix: [NTP] suppress false 'Train is lost' message if destination tile was found
src/train_cmd.c
--- a/src/train_cmd.c	Wed Jan 03 15:01:15 2007 +0000
+++ b/src/train_cmd.c	Wed Jan 03 20:00:29 2007 +0000
@@ -2254,6 +2254,7 @@
 		 * because in that case the dest_coords are just an
 		 * approximation of where the station is */
 		// found station
+		ttfd->best_bird_dist = 0; // we found destination
 		ttfd->best_track = track;
 		return true;
 	} else {