Changeset - r15681:1a943e4e4e0d
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-08-04 06:27:20
frosch@openttd.org
(svn r20357) -Fix (r20356): Call GetAllRoadBits() only if there is road.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -862,7 +862,7 @@ static CommandCost CheckFlatLandRoadStop
 
		} else {
 
			bool build_over_road = is_drive_through && IsNormalRoadTile(cur_tile);
 
			/* Road bits in the wrong direction. */
 
			RoadBits rb = GetAllRoadBits(cur_tile);
 
			RoadBits rb = IsNormalRoadTile(cur_tile) ? GetAllRoadBits(cur_tile) : ROAD_NONE;
 
			if (build_over_road && (rb & (axis == AXIS_X ? ROAD_Y : ROAD_X)) != 0) {
 
				/* Someone was pedantic and *NEEDED* three fracking different error messages. */
 
				switch (CountBits(rb)) {
0 comments (0 inline, 0 general)