(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)
authorKUDr
Tue, 13 Mar 2007 21:04:22 +0000
changeset 6629 b35b983c6cdb
parent 6628 2b97a7deed52
child 6630 4fa4f6d883ba
(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
--- a/src/train_cmd.cpp	Tue Mar 13 12:05:41 2007 +0000
+++ b/src/train_cmd.cpp	Tue Mar 13 21:04:22 2007 +0000
@@ -2158,6 +2158,7 @@
 		 * 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.