overworld housekeeping

This commit is contained in:
Justin Scofield
2022-07-11 21:37:20 -04:00
parent bd44cc2c96
commit 56c81ae97e
7 changed files with 21 additions and 22 deletions

View File

@@ -10,11 +10,8 @@ namespace zelda3 {
using namespace core;
using namespace gfx;
void Overworld::Load(ROM& rom, uchar* allGfxPtr) {
void Overworld::Load(ROM& rom) {
rom_ = rom;
allGfx16Ptr = allGfxPtr;
overworldMapPointer = std::make_shared<uchar[]>(0x40000);
mapblockset16 = std::make_shared<uchar[]>(1048576);
@@ -35,8 +32,7 @@ void Overworld::Load(ROM& rom, uchar* allGfxPtr) {
for (int i = 0; i < 160; i++) {
overworld_maps_[i].BuildMap(mapParent, size, gameState, allmapsTilesLW,
allmapsTilesDW, allmapsTilesSP,
currentOWgfx16Ptr.get(), allGfx16Ptr,
mapblockset16.get());
currentOWgfx16Ptr.get(), mapblockset16.get());
}
isLoaded = true;