(svn r16079) -Fix [FS#2824]: insanely fast trains would not stop in time for stations

-Fix: insanely fast trains would sometimes 'jump' over waypoints/via stations within a tick, which would cause the order not to be processed causing the train to go in loops until (with luck) it 'hit' the tile
This commit is contained in:
rubidium
2009-04-18 13:43:05 +00:00
parent f97b8c6746
commit 51288dee9d
2 changed files with 18 additions and 2 deletions

View File

@@ -1514,6 +1514,7 @@ void Vehicle::BeginLoading()
InvalidateWindow(WC_STATION_VIEW, this->last_station_visited);
GetStation(this->last_station_visited)->MarkTilesDirty(true);
this->cur_speed = 0;
this->MarkDirty();
}