MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / saveHeader

Method saveHeader

Source/Map/Original.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void cOriginalMap::saveHeader() {
31 uint16* Map = (uint16*)mData->data();
32
33 // Map Marker ('ofed')
34 Map[0x28] = 'fo'; Map[0x29] = 'de';
35
36 // Put the map size
37 writeBEWord(&Map[0x2A], (uint16)mParams.mWidth);
38 writeBEWord(&Map[0x2B], (uint16)mParams.mHeight);
39
40 SetTileTypeInHeader();
41}
42
43void cOriginalMap::SetTileTypeInHeader() {
44 std::string mBaseName = mTileTypes[mParams.mTileType].mName + "base.blk";

Callers

nothing calls this directly

Calls 1

writeBEWordFunction · 0.85

Tested by

no test coverage detected