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

Function LoadOldAnimTileList

src/saveload/oldloader_sl.cpp:669–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669static bool LoadOldAnimTileList(LoadgameState &ls, int)
670{
671 TileIndex anim_list[256];
672 const OldChunks anim_chunk[] = {
673 OCL_VAR ( OC_TILE, 256, anim_list ),
674 OCL_END ()
675 };
676
677 if (!LoadChunk(ls, nullptr, anim_chunk)) return false;
678
679 /* The first zero in the loaded array indicates the end of the list. */
680 for (int i = 0; i < 256; i++) {
681 if (anim_list[i] == 0) break;
682 _animated_tiles.push_back(anim_list[i]);
683 }
684
685 return true;
686}
687
688static const OldChunks depot_chunk[] = {
689 OCL_SVAR( OC_TILE, Depot, xy ),

Callers

nothing calls this directly

Calls 2

LoadChunkFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected