From 1c182efd014eb7c8239976995e0d9c3b2b4871c8 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 25 Apr 2024 10:21:17 -0400 Subject: [PATCH] Remove unused code from object renderer --- src/app/zelda3/dungeon/object_renderer.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/zelda3/dungeon/object_renderer.cc b/src/app/zelda3/dungeon/object_renderer.cc index c22ef468..5e030162 100644 --- a/src/app/zelda3/dungeon/object_renderer.cc +++ b/src/app/zelda3/dungeon/object_renderer.cc @@ -96,7 +96,6 @@ void DungeonObjectRenderer::ConfigureObject(const SubtypeInfo& info) { */ void DungeonObjectRenderer::RenderObject(const SubtypeInfo& info) { cpu.PB = 0x01; - cpu.PC = cpu.ReadWord(0x01 << 16 | info.routine_ptr); // Push an initial value to the stack we can read later to confirm we are // done @@ -107,13 +106,7 @@ void DungeonObjectRenderer::RenderObject(const SubtypeInfo& info) { uint8_t opcode = cpu.ReadByte(cpu.PB << 16 | cpu.PC); cpu.ExecuteInstruction(opcode); - if ((i != 0 && - (cpu.ReadWord((0x00 << 16 | cpu.SP() + 2)) == info.routine_ptr) || - 0x8b93 == cpu.PC)) { - std::cout << std::hex << cpu.ReadWord((0x00 << 16 | cpu.SP() + 3)) - << std::endl; - break; - } + i++; }