summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-26 13:01:09 +0000
committerfrosch <frosch@openttd.org>2012-12-26 13:01:09 +0000
commitb48c4c800bd9bd19918a61fb3eb7d84f702d25e4 (patch)
tree3c8e8c8c6e2944d2f2d769cabc5da429cccd7240
parent799a74509918f06ef69f8d900d33b0392c1d1aa3 (diff)
downloadopenttd-b48c4c800bd9bd19918a61fb3eb7d84f702d25e4.tar.xz
(svn r24856) -Fix [FS#5406]: Don't let UFOs and coal mines destroy depots.
-rw-r--r--src/disaster_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index 12224eb13..c5bca0aed 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -76,7 +76,7 @@ static void DisasterClearSquare(TileIndex tile)
switch (GetTileType(tile)) {
case MP_RAILWAY:
- if (Company::IsHumanID(GetTileOwner(tile))) {
+ if (Company::IsHumanID(GetTileOwner(tile)) && !IsRailDepot(tile)) {
Backup<CompanyByte> cur_company(_current_company, OWNER_WATER, FILE_LINE);
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
cur_company.Restore();