diff options
author | yexo <yexo@openttd.org> | 2011-12-09 16:11:42 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-09 16:11:42 +0000 |
commit | 6aae285b72bfe5612ccfc59f75fe51ee557086cd (patch) | |
tree | 14d4e9ea34f472412b0a0df2e81fd1ea1dd5015d /src/disaster_cmd.cpp | |
parent | e7777f44b9c6e44b882052227f371def959ffbfd (diff) | |
download | openttd-6aae285b72bfe5612ccfc59f75fe51ee557086cd.tar.xz |
(svn r23457) -Codechange: introduce Industry::TileBelongsToIndustry() to simplify code checking for that
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r-- | src/disaster_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index 89e19a67e..a551d83a6 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -376,7 +376,7 @@ static bool DisasterTick_Ufo(DisasterVehicle *v) static void DestructIndustry(Industry *i) { for (TileIndex tile = 0; tile != MapSize(); tile++) { - if (IsTileType(tile, MP_INDUSTRY) && GetIndustryIndex(tile) == i->index) { + if (i->TileBelongsToIndustry(tile)) { ResetIndustryConstructionStage(tile); MarkTileDirtyByTile(tile); } |