mirror of https://github.com/OpenTTD/OpenTTD
(svn r11189) -Fix: if the location check callback results in something invalid (i.e. not a callback result), the industry should be allowed to be build as that's how TTDP does it.
parent
ff14665f6e
commit
171374a8f0
|
@ -439,7 +439,9 @@ bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspe
|
|||
|
||||
group = Resolve(GetIndustrySpec(type)->grf_prop.spritegroup, &object);
|
||||
|
||||
if (group == NULL || group->type != SGT_CALLBACK) return false;
|
||||
/* Unlike the "normal" cases, not having a valid result means we allow
|
||||
* the building of the industry, as that's how it's done in TTDP. */
|
||||
if (group == NULL || group->type != SGT_CALLBACK) return true;
|
||||
|
||||
switch (group->g.callback.result) {
|
||||
case 0x400: return true;
|
||||
|
|
Loading…
Reference in New Issue