(svn r16057) -Fix [FS#2834] (r16037): division by zero when having an order with only one station that has either middle or near end stop location and where the platform is (significantly) longer than the train.
This commit is contained in:
@@ -2681,7 +2681,7 @@ static VehicleEnterTileStatus VehicleEnter_Station(Vehicle *v, TileIndex tile, i
|
||||
* begin of the platform to the stop location is longer than the length
|
||||
* of the platform. Station ahead 'includes' the current tile where the
|
||||
* vehicle is on, so we need to substract that. */
|
||||
if (station_length <= stop + station_ahead - TILE_SIZE) return VETSB_CONTINUE;
|
||||
if (!IsInsideBS(stop + station_ahead, station_length, TILE_SIZE)) return VETSB_CONTINUE;
|
||||
|
||||
DiagDirection dir = DirToDiagDir(v->direction);
|
||||
|
||||
|
Reference in New Issue
Block a user