mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-13 15:54:39 +01:00
(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)
This commit is contained in:
parent
e3f73943f6
commit
c7bcdb69b1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user