mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Clear BGMap before clear level screen to avoid glitch due to SCX=4 [bugfix to f6320585bf
] (#35)
This commit is contained in:
parent
f6320585bf
commit
0abe559e11
@ -107,10 +107,7 @@ _SlotMachine:
|
|||||||
call PlayMusic
|
call PlayMusic
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
hlbgcoord 0, 0
|
call ClearBGMap0or2
|
||||||
ld bc, vBGMap1 - vBGMap0
|
|
||||||
ld a, " "
|
|
||||||
call ByteFill
|
|
||||||
ld b, CGB_SLOT_MACHINE
|
ld b, CGB_SLOT_MACHINE
|
||||||
call GetCGBLayout
|
call GetCGBLayout
|
||||||
callfar ClearSpriteAnims
|
callfar ClearSpriteAnims
|
||||||
|
@ -4,13 +4,16 @@ ClearedLevelScreen:
|
|||||||
ldh [hSCY], a
|
ldh [hSCY], a
|
||||||
ld a, -$4
|
ld a, -$4
|
||||||
ldh [hSCX], a
|
ldh [hSCX], a
|
||||||
|
call DisableLCD
|
||||||
call ClearTilemap
|
call ClearTilemap
|
||||||
|
call ClearBGMap0or2
|
||||||
call LoadFrame
|
call LoadFrame
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call ClearMenuAndWindowData
|
call ClearMenuAndWindowData
|
||||||
ld b, CGB_DIPLOMA
|
ld b, CGB_DIPLOMA
|
||||||
call GetCGBLayout
|
call GetCGBLayout
|
||||||
call SetPalettes
|
call SetPalettes
|
||||||
|
call EnableLCD
|
||||||
ld hl, .LevelCleared1Text
|
ld hl, .LevelCleared1Text
|
||||||
bccoord 3, 1
|
bccoord 3, 1
|
||||||
call PrintHLTextAtBC
|
call PrintHLTextAtBC
|
||||||
@ -54,4 +57,4 @@ AddLevelCoinsToBalance:
|
|||||||
ld [bc], a
|
ld [bc], a
|
||||||
pop bc
|
pop bc
|
||||||
farcall GiveCoins
|
farcall GiveCoins
|
||||||
ret
|
ret
|
||||||
|
@ -14,11 +14,12 @@ GameMenu:
|
|||||||
GameMenu_KeepMusic:
|
GameMenu_KeepMusic:
|
||||||
xor a
|
xor a
|
||||||
ldh [hMapAnims], a
|
ldh [hMapAnims], a
|
||||||
ldh [hSCX], a
|
|
||||||
ldh [hSCY], a
|
|
||||||
call ClearTilemap
|
call ClearTilemap
|
||||||
call LoadFrame
|
call LoadFrame
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
|
xor a
|
||||||
|
ldh [hSCX], a
|
||||||
|
ldh [hSCY], a
|
||||||
call ClearMenuAndWindowData
|
call ClearMenuAndWindowData
|
||||||
ld b, CGB_DIPLOMA
|
ld b, CGB_DIPLOMA
|
||||||
call GetCGBLayout
|
call GetCGBLayout
|
||||||
|
@ -5,10 +5,7 @@ InitDisplayForHallOfFame:
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
hlbgcoord 0, 0
|
call ClearBGMap0or2
|
||||||
ld bc, vBGMap1 - vBGMap0
|
|
||||||
ld a, " "
|
|
||||||
call ByteFill
|
|
||||||
hlcoord 0, 0, wAttrmap
|
hlcoord 0, 0, wAttrmap
|
||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
xor a
|
xor a
|
||||||
@ -34,10 +31,7 @@ InitDisplayForRedCredits:
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
hlbgcoord 0, 0
|
call ClearBGMap0or2
|
||||||
ld bc, vBGMap1 - vBGMap0
|
|
||||||
ld a, " "
|
|
||||||
call ByteFill
|
|
||||||
hlcoord 0, 0, wAttrmap
|
hlcoord 0, 0, wAttrmap
|
||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
xor a
|
xor a
|
||||||
|
@ -239,17 +239,13 @@ LoadMapTimeOfDay:
|
|||||||
ldh [rVBK], a
|
ldh [rVBK], a
|
||||||
|
|
||||||
xor a
|
xor a
|
||||||
ld bc, vBGMap1 - vBGMap0
|
call FillBGMap0or2
|
||||||
hlbgcoord 0, 0
|
|
||||||
call ByteFill
|
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rVBK], a
|
ldh [rVBK], a
|
||||||
|
|
||||||
ld a, "■"
|
ld a, "■"
|
||||||
ld bc, vBGMap1 - vBGMap0
|
call FillBGMap0or2
|
||||||
hlbgcoord 0, 0
|
|
||||||
call ByteFill
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.PushAttrmap:
|
.PushAttrmap:
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
ClearBGMap0or2::
|
||||||
|
ld a, " "
|
||||||
|
FillBGMap0or2::
|
||||||
|
hlbgcoord 0, 0
|
||||||
|
ld bc, vBGMap1 - vBGMap0
|
||||||
|
jp ByteFill
|
||||||
|
|
||||||
ClearBGPalettes::
|
ClearBGPalettes::
|
||||||
call ClearPalettes
|
call ClearPalettes
|
||||||
WaitBGMap::
|
WaitBGMap::
|
||||||
|
Loading…
Reference in New Issue
Block a user