| 1925 | } |
| 1926 | |
| 1927 | void 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 | |
| 1953 | void cFodder::Music_Check_MapTile_TrackChange() { |