Improve some innacurate function names, labels, and comments (#1078)

[https://github.com/pret/pokecrystal/issues/1078#issue-1869550979 and https://github.com/pret/pokecrystal/issues/1078#issuecomment-1696394371]
This commit is contained in:
xCrystal
2024-01-07 12:38:00 +01:00
parent dbf6044650
commit bd6ceec193
107 changed files with 340 additions and 337 deletions

View File

@@ -103,7 +103,7 @@ PokeGear:
call InitPokegearTilemap
ld b, SCGB_POKEGEAR_PALS
call GetSGBLayout
call SetPalettes
call SetDefaultBGPAndOBP
ldh a, [hCGB]
and a
ret z
@@ -1796,7 +1796,7 @@ _TownMap:
ld [wTownMapCursorObjectPointer + 1], a
ld b, SCGB_POKEGEAR_PALS
call GetSGBLayout
call SetPalettes
call SetDefaultBGPAndOBP
ldh a, [hCGB]
and a
jr z, .dmg
@@ -2042,7 +2042,7 @@ _FlyMap:
call Pokegear_DummyFunction
ld b, SCGB_POKEGEAR_PALS
call GetSGBLayout
call SetPalettes
call SetDefaultBGPAndOBP
.loop
call JoyTextDelay
ld hl, hJoyPressed
@@ -2363,7 +2363,7 @@ Pokedex_GetArea:
call TownMapBGUpdate
ld b, SCGB_POKEGEAR_PALS
call GetSGBLayout
call SetPalettes
call SetDefaultBGPAndOBP
xor a
ldh [hBGMapMode], a
xor a ; JOHTO_REGION
@@ -2827,7 +2827,7 @@ EntireFlyMap: ; unreferenced
ld [wTownMapCursorCoordinates + 1], a
ld b, SCGB_POKEGEAR_PALS
call GetSGBLayout
call SetPalettes
call SetDefaultBGPAndOBP
.loop
call JoyTextDelay
ld hl, hJoyPressed