# HG changeset patch # User terkhen # Date 2010-02-24 22:40:43 # Node ID fa9e3729c00b458b848596f61958acff82d22bf3 # Parent 03d1a1f40787e9ee9381ec60e2e5696c0008216b (svn r19232) -Fix (r19231): Forbid overbuilding drive-through stops using a different orientation. diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -832,6 +832,10 @@ static CommandCost CheckFlatLandRoadStop 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;