Enable rgbds warnings and remove CFLAGS=-O2 (default is now -O3)

This commit is contained in:
Rangi
2020-04-04 17:46:36 -04:00
parent 95e48ef992
commit 3144b54bd1
8 changed files with 24 additions and 18 deletions

View File

@@ -750,13 +750,13 @@ Script_AskWaterfall:
EscapeRopeFunction:
call FieldMoveJumptableReset
ld a, $1
jr dig_incave
jr EscapeRopeOrDig
DigFunction:
call FieldMoveJumptableReset
ld a, $2
dig_incave
EscapeRopeOrDig:
ld [wBuffer2], a
.loop
ld hl, .DigTable

View File

@@ -241,21 +241,21 @@ LoadTrainerClassPaletteAsNthBGPal:
ld a, [wTrainerClass]
call GetTrainerPalettePointer
ld a, e
jr got_palette_pointer_8bd7
jr LoadNthMiddleBGPal
LoadMonPaletteAsNthBGPal:
ld a, [wCurPartySpecies]
call _GetMonPalettePointer
ld a, e
bit 7, a
jr z, got_palette_pointer_8bd7
jr z, LoadNthMiddleBGPal
and $7f
inc hl
inc hl
inc hl
inc hl
got_palette_pointer_8bd7
LoadNthMiddleBGPal:
push hl
ld hl, wBGPals1
ld de, 1 palettes

View File

@@ -247,7 +247,7 @@ FixPicBank:
; This is a thing for some reason.
PICS_FIX EQU $36
GLOBAL PICS_FIX
EXPORT PICS_FIX
push hl
push bc

View File

@@ -16,7 +16,7 @@
const DEXSTATE_EXIT
POKEDEX_SCX EQU 5
GLOBAL POKEDEX_SCX
EXPORT POKEDEX_SCX
Pokedex:
ldh a, [hWX]