mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
de084ace1c
commit
07a1d4379e
|
@ -244,7 +244,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its,
|
||||||
if (its->grf_prop.grffile->grf_version < 7) {
|
if (its->grf_prop.grffile->grf_version < 7) {
|
||||||
return callback_res != 0;
|
return callback_res != 0;
|
||||||
}
|
}
|
||||||
if (callback_res != CALLBACK_FAILED) return true;
|
if (callback_res == CALLBACK_FAILED) return false;
|
||||||
|
|
||||||
switch (callback_res) {
|
switch (callback_res) {
|
||||||
case 0x400: return true;
|
case 0x400: return true;
|
||||||
|
|
Loading…
Reference in New Issue