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

Method Load

src/saveload/map_sl.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 MAPOChunkHandler() : ChunkHandler('MAPO', CH_RIFF) {}
125
126 void Load() const override
127 {
128 std::array<uint8_t, MAP_SL_BUF_SIZE> buf;
129 uint size = Map::Size();
130
131 for (TileIndex i{}; i != size;) {
132 SlCopy(buf.data(), MAP_SL_BUF_SIZE, SLE_UINT8);
133 for (uint j = 0; j != MAP_SL_BUF_SIZE; j++) Tile(i++).m1() = buf[j];
134 }
135 }
136
137 void Save() const override
138 {

Callers

nothing calls this directly

Calls 3

SlCopyFunction · 0.85
TileClass · 0.85
dataMethod · 0.45

Tested by

no test coverage detected