|
@@ -168,7 +168,7 @@ static uint32 GetCountAndDistanceOfClose
|
|
|
case 0x82: return this->industry->town->index;
|
|
|
case 0x83:
|
|
|
case 0x84:
|
|
|
case 0x85: DEBUG(grf, 0, "NewGRFs shouldn't be doing pointer magic"); break; // not supported
|
|
|
case 0x85: Debug(grf, 0, "NewGRFs shouldn't be doing pointer magic"); break; // not supported
|
|
|
|
|
|
/* Number of the layout */
|
|
|
case 0x86: return this->industry->selected_layout;
|
|
@@ -199,7 +199,7 @@ static uint32 GetCountAndDistanceOfClose
|
|
|
const IndustrySpec *indspec = GetIndustrySpec(this->type);
|
|
|
|
|
|
if (this->industry == nullptr) {
|
|
|
DEBUG(grf, 1, "Unhandled variable 0x%X (no available industry) in callback 0x%x", variable, this->ro.callback);
|
|
|
Debug(grf, 1, "Unhandled variable 0x{:X} (no available industry) in callback 0x{:x}", variable, this->ro.callback);
|
|
|
|
|
|
*available = false;
|
|
|
return UINT_MAX;
|
|
@@ -352,7 +352,7 @@ static uint32 GetCountAndDistanceOfClose
|
|
|
case 0x82: return this->industry->town->index;
|
|
|
case 0x83:
|
|
|
case 0x84:
|
|
|
case 0x85: DEBUG(grf, 0, "NewGRFs shouldn't be doing pointer magic"); break; // not supported
|
|
|
case 0x85: Debug(grf, 0, "NewGRFs shouldn't be doing pointer magic"); break; // not supported
|
|
|
case 0x86: return this->industry->location.w;
|
|
|
case 0x87: return this->industry->location.h;// xy dimensions
|
|
|
|
|
@@ -408,7 +408,7 @@ static uint32 GetCountAndDistanceOfClose
|
|
|
}
|
|
|
}
|
|
|
|
|
|
DEBUG(grf, 1, "Unhandled industry variable 0x%X", variable);
|
|
|
Debug(grf, 1, "Unhandled industry variable 0x{:X}", variable);
|
|
|
|
|
|
*available = false;
|
|
|
return UINT_MAX;
|