From ba82d7d9a5625033fd649f09591dec98da6885b9 Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 24 Feb 2010 22:40:43 +0000 Subject: (svn r19232) -Fix (r19231): Forbid overbuilding drive-through stops using a different orientation. --- src/station_cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index c30f4108b..e7ed6e827 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -832,6 +832,10 @@ static CommandCost CheckFlatLandRoadStop(TileArea tile_area, DoCommandFlag flags HasBit(rts, ROADTYPE_TRAM) != HasBit(GetRoadTypes(cur_tile), ROADTYPE_TRAM)) { return ClearTile_Station(cur_tile, DC_AUTO); // Get error message. } + /* Drive-through station in the wrong direction. */ + if (is_drive_through && IsDriveThroughStopTile(cur_tile) && DiagDirToAxis(GetRoadStopDir(cur_tile)) != axis){ + return_cmd_error(STR_ERROR_DRIVE_THROUGH_DIRECTION); + } StationID st = GetStationIndex(cur_tile); if (*station == INVALID_STATION) { *station = st; -- cgit v1.2.3-54-g00ecf