Mercurial > hg > openttd
changeset 19922:0dab37af8b7e draft
(svn r24856) -Fix [FS#5406]: Don't let UFOs and coal mines destroy depots.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 26 Dec 2012 13:01:09 +0000 |
parents | eabd618abcc9 |
children | 4a8cbdf2bb7e |
files | src/disaster_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -76,7 +76,7 @@ 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();