MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / LoadOldEngineName

Function LoadOldEngineName

src/saveload/oldloader_sl.cpp:1471–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1469}
1470
1471static bool LoadOldEngineName(LoadgameState &ls, int num)
1472{
1473 Engine *e = GetTempDataEngine(static_cast<EngineID>(num));
1474 e->name = CopyFromOldName(RemapOldStringID(ReadUint16(ls)));
1475 return true;
1476}
1477
1478static const OldChunks subsidy_chunk[] = {
1479 OCL_SVAR( OC_UINT8, Subsidy, cargo_type ),

Callers

nothing calls this directly

Calls 4

GetTempDataEngineFunction · 0.85
CopyFromOldNameFunction · 0.85
RemapOldStringIDFunction · 0.85
ReadUint16Function · 0.85

Tested by

no test coverage detected