| 667 | } |
| 668 | |
| 669 | static 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 | |
| 688 | static const OldChunks depot_chunk[] = { |
| 689 | OCL_SVAR( OC_TILE, Depot, xy ), |