summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-10 15:09:56 +0000
committerbelugas <belugas@openttd.org>2006-04-10 15:09:56 +0000
commita9727602943e2fb948ba8c297f960608aa02a193 (patch)
treeb5d0374e10871b67150591e288f8b0ba183dc582 /disaster_cmd.c
parenteae5fcc45538a806f965760487ebe51cadd0cad2 (diff)
downloadopenttd-a9727602943e2fb948ba8c297f960608aa02a193.tar.xz
(svn r4346) CodeChange : Add and Use Accessors to Industry's Stage and Counter construction. Removed last direct map access from Disaster_cmd.c as well. Based on work from Rubidium in tfc_newmap
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index b11afbb63..da4c3e766 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -339,7 +339,7 @@ static void DestructIndustry(Industry *i)
for (tile = 0; tile != MapSize(); tile++) {
if (IsTileType(tile, MP_INDUSTRY) && GetIndustryIndex(tile) == i->index) {
- _m[tile].m1 = 0;
+ ResetIndustryConstructionStage(tile);
MarkTileDirtyByTile(tile);
}
}