DrawRoomSelectMap had some unimplemented code

This commit is contained in:
Snesrev
2023-03-06 03:23:18 +01:00
parent 19af4b6b80
commit db20133474

View File

@@ -1668,22 +1668,20 @@ void DrawRoomSelectMap(void) { // 0x829517
uint16 v2 = 0; uint16 v2 = 0;
LOBYTE(R18_) = 0; LOBYTE(R18_) = 0;
while (1) { while (1) {
Unreachable(); uint8 what = map_tiles_explored[v2];
if (Unreachable()) { map_tiles_explored[v2] <<= 1;
HIBYTE(v3) = HIBYTE(v1); if (!(what & 0x80)) {
IndirWriteWord(&R3_, v1, 0xFu); IndirWriteWord(&R3_, v1, 0xFu);
} else { } else {
++map_tiles_explored[v2]; ++map_tiles_explored[v2];
uint8 *v4 = IndirPtr(&R0_, v1); IndirWriteWord(&R3_, v1, *(uint16 *)IndirPtr(&R0_, v1) & ~0x400);
HIBYTE(v3) = HIBYTE(v1);
IndirWriteWord(&R3_, v1, *(uint16 *)v4 & 0xFBFF);
} }
v1 += 2; v1 += 2;
LOBYTE(R18_) = R18_ + 1; LOBYTE(R18_) = R18_ + 1;
LOBYTE(v3) = R18_ - 8; LOBYTE(v3) = R18_ - 8;
if (!(uint8)sign8(v3)) { if (!(uint8)sign8(v3)) {
LOBYTE(R18_) = 0; LOBYTE(R18_) = 0;
if ((++v2 & 0x8000u) == 0) if ((__int16)(++v2 - 256) >= 0)
break; break;
} }
} }