Deduplicate three instances of the callba macro

This commit is contained in:
Raymond Dodge 2024-01-05 02:43:29 -05:00 committed by Marcus Huderle
parent 0be435fd68
commit dcfffa5200
3 changed files with 3 additions and 12 deletions

View File

@ -1391,10 +1391,7 @@ Func_1098c: ; 0x1098c
bit 0, a
ret z
callba Func_1c2cb
ld [hFarCallTempA], a
ld a, $4
ld hl, Func_10184
call BankSwitch
callba Func_10184
ld a, [hGameBoyColorFlag]
and a
callba nz, Func_102bc

View File

@ -3528,10 +3528,7 @@ CloseSlotCave: ; 0x1f2ed
xor a
ld [wSlotIsOpen], a
ld [wIndicatorStates + 4], a
ld [hFarCallTempA], a
ld a, Bank(LoadSlotCaveCoverGraphics_BlueField) ; this is in the same bank...
ld hl, LoadSlotCaveCoverGraphics_BlueField
call BankSwitch
callba LoadSlotCaveCoverGraphics_BlueField ; this is in the same bank...
ret
SetLeftAndRightAlleyArrowIndicatorStates_BlueField: ; 0x1f2ff

View File

@ -20,10 +20,7 @@ DoSlotRewardRoulette: ; 0xed8e
call HandleTilts
ld a, [wCurrentStage]
bit 0, a
ld [hFarCallTempA], a
ld a, $3
ld hl, HandleFlippers
call nz, BankSwitch
callba nz, HandleFlippers
callba DrawSpritesForStage
call UpdateBottomText
call CleanSpriteBuffer