Changeset - r6756:e6ed75d17a32
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-30 20:13:58
rubidium@openttd.org
(svn r9991) -Fix: one could build road when trams were driving on the tile and vice versa.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/road_cmd.cpp
Show inline comments
 
@@ -361,6 +361,8 @@ int32 CmdBuildRoad(TileIndex tile, uint3
 
			switch (GetRoadTileType(tile)) {
 
				case ROAD_TILE_NORMAL:
 
					if (HasRoadWorks(tile)) return_cmd_error(STR_ROAD_WORKS_IN_PROGRESS);
 
					if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
 

	
 
					all_bits = GetAllRoadBits(tile);
 
					if (!HASBIT(GetRoadTypes(tile), rt)) break;
 

	
 
@@ -368,7 +370,6 @@ int32 CmdBuildRoad(TileIndex tile, uint3
 
					if ((existing & pieces) == pieces) {
 
						return_cmd_error(STR_1007_ALREADY_BUILT);
 
					}
 
					if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
 
					break;
 

	
 
				case ROAD_TILE_CROSSING:
0 comments (0 inline, 0 general)