diff options
author | frosch <frosch@openttd.org> | 2012-11-12 18:09:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-12 18:09:33 +0000 |
commit | e6459a91dde92bbaa0ccdfa7a318a91c2164a844 (patch) | |
tree | 5dc5a82b565f6cac81af4ca611851df7177ee233 /src/station_cmd.cpp | |
parent | 941f51f0e59188a6ae5295031866eb730c56813c (diff) | |
download | openttd-e6459a91dde92bbaa0ccdfa7a318a91c2164a844.tar.xz |
(svn r24703) -Fix: Disallow closing oilrig airports in SE.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index f603c4e15..7cb577767 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2345,7 +2345,7 @@ CommandCost CmdOpenCloseAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, if (!Station::IsValidID(p1)) return CMD_ERROR; Station *st = Station::Get(p1); - if (!(st->facilities & FACIL_AIRPORT)) return CMD_ERROR; + if (!(st->facilities & FACIL_AIRPORT) || st->owner == OWNER_NONE) return CMD_ERROR; CommandCost ret = CheckOwnership(st->owner); if (ret.Failed()) return ret; |