(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks.

This commit is contained in:
frosch
2010-05-01 13:01:21 +00:00
parent 36850ba3e8
commit 7795303227
6 changed files with 48 additions and 19 deletions

View File

@@ -2165,7 +2165,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
}
if (HasBit(hs->callback_mask, CBM_HOUSE_ALLOW_CONSTRUCTION)) {
uint16 callback_res = GetHouseCallback(CBID_HOUSE_ALLOW_CONSTRUCTION, 0, 0, house, t, tile);
uint16 callback_res = GetHouseCallback(CBID_HOUSE_ALLOW_CONSTRUCTION, 0, 0, house, t, tile, true);
if (callback_res != CALLBACK_FAILED && GB(callback_res, 0, 8) == 0) continue;
}