(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

This commit is contained in:
belugas
2006-04-10 15:09:56 +00:00
parent 24f871deba
commit 43101bd2d1
3 changed files with 97 additions and 14 deletions

View File

@@ -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);
}
}