# HG changeset patch # User peter1138 # Date 1158602553 0 # Node ID fc11bc6a7fe783d6dac6aec1b764b9446253ef33 # Parent 9fa09a3e653a0707fac316696cc06bc4dba2d8b2 (svn r6477) - Fix a loop-hole that allowed docks to be built regardless of town authority rating. diff -r 9fa09a3e653a -r fc11bc6a7fe7 station_cmd.c --- a/station_cmd.c Mon Sep 18 08:39:03 2006 +0000 +++ b/station_cmd.c Mon Sep 18 18:02:33 2006 +0000 @@ -1918,6 +1918,8 @@ 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);