Changeset - r17186:658af0e33efa
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2011-02-01 10:43:25
terkhen@openttd.org
(svn r21935) -Fix (r19231): Allow to overbuild road stops which are built over trams.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -845,14 +845,13 @@ static CommandCost CheckFlatLandRoadStop
 
		 * Or it points to a station if we're only allowed to build on exactly that station. */
 
		if (station != NULL && IsTileType(cur_tile, MP_STATION)) {
 
			if (!IsRoadStop(cur_tile)) {
 
				return ClearTile_Station(cur_tile, DC_AUTO); // Get error message.
 
			} else {
 
				if (is_truck_stop != IsTruckStop(cur_tile) ||
 
						is_drive_through != IsDriveThroughStopTile(cur_tile) ||
 
						HasBit(rts, ROADTYPE_TRAM) != HasBit(GetRoadTypes(cur_tile), ROADTYPE_TRAM)) {
 
						is_drive_through != IsDriveThroughStopTile(cur_tile)) {
 
					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);
 
				}
0 comments (0 inline, 0 general)