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

Method Map_Load_TileTracks

Source/Fodder.cpp:1927–1950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1925}
1926
1927void cFodder::Map_Load_TileTracks() {
1928 uint8* tilePtr = mMap->data() + 0x62;
1929
1930 uint16_t heightCount = 0, widthCount;
1931
1932 mMapTileTracks.clear();
1933
1934 while (heightCount < mMapLoaded->getHeight()) {
1935 widthCount = 0;
1936
1937 while (widthCount < mMapLoaded->getWidth()) {
1938 uint16_t tile = (readLE<uint16>(tilePtr) & 0xE000) >> 8;
1939
1940 if (tile != 0) {
1941 mMapTileTracks.emplace_back( widthCount , heightCount, tile >> 5 );
1942 }
1943
1944 tilePtr += 2;
1945 widthCount++;
1946 }
1947
1948 heightCount++;
1949 }
1950}
1951
1952
1953void cFodder::Music_Check_MapTile_TrackChange() {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
getHeightMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected