Changeset - r4619:d6625e2ba0ef
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-09-18 18:02:33
peter1138@openttd.org
(svn r6477) - Fix a loop-hole that allowed docks to be built regardless of town authority rating.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -1918,6 +1918,8 @@ int32 CmdBuildDock(TileIndex tile, uint3
 
		default: return_cmd_error(STR_304B_SITE_UNSUITABLE);
 
	}
 

	
 
	if (!(flags & DC_NO_TOWN_RATING) && !CheckIfAuthorityAllows(tile)) return CMD_ERROR;
 

	
 
	if (!EnsureNoVehicle(tile)) return CMD_ERROR;
 

	
 
	cost = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
0 comments (0 inline, 0 general)