static */
| 158 | } |
| 159 | |
| 160 | /* static */ IndustryType ScriptIndustryType::ResolveNewGRFID(SQInteger grfid, SQInteger grf_local_id) |
| 161 | { |
| 162 | EnforcePrecondition(IT_INVALID, IsInsideBS(grf_local_id, 0x00, NUM_INDUSTRYTYPES_PER_GRF)); |
| 163 | |
| 164 | grfid = std::byteswap(GB(grfid, 0, 32)); // Match people's expectations. |
| 165 | return _industry_mngr.GetID(grf_local_id, grfid); |
| 166 | } |
nothing calls this directly
no test coverage detected