# HG changeset patch # User rubidium # Date 2007-09-30 18:53:59 # Node ID dc7d1afc14baeded016433d7fb75d6acf4052e9c # Parent 0608e862fd36be396100562f80bf1a01011bf3f4 (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. diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -439,7 +439,9 @@ bool CheckIfCallBackAllowsCreation(TileI 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;