Mercurial > hg > openttd
changeset 4619:c326db1cb144 draft
(svn r6477) - Fix a loop-hole that allowed docks to be built regardless of town authority rating.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 18 Sep 2006 18:02:33 +0000 |
parents | ef5af7bbac33 |
children | 390593ff345d |
files | station_cmd.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/station_cmd.c +++ b/station_cmd.c @@ -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);