(svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there.

This commit is contained in:
rubidium 2007-07-12 09:15:57 +00:00
parent de084ace1c
commit 07a1d4379e
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its,
if (its->grf_prop.grffile->grf_version < 7) {
return callback_res != 0;
}
if (callback_res != CALLBACK_FAILED) return true;
if (callback_res == CALLBACK_FAILED) return false;
switch (callback_res) {
case 0x400: return true;