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

Method Load

src/saveload/map_sl.cpp:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 M3LOChunkHandler() : ChunkHandler('M3LO', CH_RIFF) {}
182
183 void Load() const override
184 {
185 std::array<uint8_t, MAP_SL_BUF_SIZE> buf;
186 uint size = Map::Size();
187
188 for (TileIndex i{}; i != size;) {
189 SlCopy(buf.data(), MAP_SL_BUF_SIZE, SLE_UINT8);
190 for (uint j = 0; j != MAP_SL_BUF_SIZE; j++) Tile(i++).m3() = buf[j];
191 }
192 }
193
194 void Save() const override
195 {

Callers

nothing calls this directly

Calls 3

SlCopyFunction · 0.85
TileClass · 0.85
dataMethod · 0.45

Tested by

no test coverage detected