mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix some mobile-related things
This commit is contained in:
parent
77803f571f
commit
1c41b2e579
@ -1091,9 +1091,9 @@ Function1006dc:
|
||||
ld [de], a
|
||||
ret
|
||||
|
||||
Function1006fd:
|
||||
ld a, $04
|
||||
ld hl, $a800
|
||||
MobileBattleResetTimer:
|
||||
ld a, BANK(sMobileBattleTimer)
|
||||
ld hl, sMobileBattleTimer
|
||||
call GetSRAMBank
|
||||
xor a
|
||||
ld [hli], a
|
||||
@ -1274,7 +1274,7 @@ Function100826:
|
||||
.asm_100830
|
||||
ld [hld], a
|
||||
ccf
|
||||
ld a, [wBGMapBufferPtrs]
|
||||
ld a, [wcd70]
|
||||
adc [hl]
|
||||
sub $3c
|
||||
jr nc, .asm_10083c
|
||||
@ -7551,7 +7551,7 @@ Function10378c:
|
||||
ld a, c
|
||||
and a
|
||||
ret z
|
||||
farcall Function1006fd
|
||||
farcall MobileBattleResetTimer
|
||||
ret
|
||||
|
||||
.failed_to_save
|
||||
|
4
sram.asm
4
sram.asm
@ -218,7 +218,7 @@ sBTMonPrevPrevTrainer2:: db
|
||||
sBTMonPrevPrevTrainer3:: db
|
||||
|
||||
|
||||
SECTION "Boxes 1-7", SRAM, BANK [2]
|
||||
SECTION "Boxes 1-7", SRAM
|
||||
|
||||
sBox1:: box sBox1
|
||||
sBox2:: box sBox2
|
||||
@ -260,7 +260,7 @@ s4_a60e:: dw ; a60e
|
||||
|
||||
ds $1f0
|
||||
|
||||
sMobileBattleTimer:: ds 3
|
||||
sMobileBattleTimer:: ds 3 ; a800
|
||||
|
||||
|
||||
SECTION "SRAM Mobile 2", SRAM
|
||||
|
Loading…
Reference in New Issue
Block a user