mirror of https://github.com/OpenTTD/OpenTTD
(svn r24856) -Fix [FS#5406]: Don't let UFOs and coal mines destroy depots.
parent
799a745099
commit
b48c4c800b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue