diff options
| author | YamaArashi <shadow962@live.com> | 2015-02-07 18:37:40 -0800 | 
|---|---|---|
| committer | YamaArashi <shadow962@live.com> | 2015-02-07 18:37:40 -0800 | 
| commit | 32f7cf12de9f841f76a3f2010caf6d7a80d47bcc (patch) | |
| tree | 3568312441db2bbd4acf0f6885913980f4c0eaad /engine/overworld | |
| parent | 4fd7a42b235b68ffc11d4f02305b695c2ed05549 (diff) | |
Named wram symbols
Diffstat (limited to 'engine/overworld')
| -rwxr-xr-x | engine/overworld/map_sprites.asm | 6 | ||||
| -rw-r--r-- | engine/overworld/movement.asm | 4 | ||||
| -rwxr-xr-x | engine/overworld/pokemart.asm | 8 | 
3 files changed, 9 insertions, 9 deletions
| diff --git a/engine/overworld/map_sprites.asm b/engine/overworld/map_sprites.asm index 81443c9f..16403759 100755 --- a/engine/overworld/map_sprites.asm +++ b/engine/overworld/map_sprites.asm @@ -159,7 +159,7 @@ LoadMapSpriteTilePatterns: ; 17871 (5:7871)  	ld l,e  	pop de  	ld b,a -	ld a,[wcfc4] +	ld a,[wCharRAMInUseForText]  	bit 0,a ; reloading upper half of tile patterns after displaying text?  	jr nz,.skipFirstLoad ; if so, skip loading data into the lower half  	ld a,b @@ -180,7 +180,7 @@ LoadMapSpriteTilePatterns: ; 17871 (5:7871)  	jr nc,.noCarry3  	inc d  .noCarry3 -	ld a,[wcfc4] +	ld a,[wCharRAMInUseForText]  	bit 0,a ; reloading upper half of tile patterns after displaying text?  	jr nz,.loadWhileLCDOn  	pop af @@ -264,7 +264,7 @@ InitOutsideMapSprites: ; 1797b (5:797b)  	cp a,$f0 ; does the map have 2 sprite sets?  	call nc,GetSplitMapSpriteSetID ; if so, choose the appropriate one  	ld b,a ; b = spriteSetID -	ld a,[wcfc4] +	ld a,[wCharRAMInUseForText]  	bit 0,a ; reloading upper half of tile patterns after displaying text?  	jr nz,.loadSpriteSet ; if so, forcibly reload the sprite set  	ld a,[W_SPRITESETID] diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm index 3b9cac7d..1658b0e9 100644 --- a/engine/overworld/movement.asm +++ b/engine/overworld/movement.asm @@ -52,7 +52,7 @@ UpdatePlayerSprite: ; 4e31 (1:4e31)  	jr .asm_4eab  .asm_4e86  	ld [wSpriteStateData1 + 9], a -	ld a, [wcfc4] +	ld a, [wCharRAMInUseForText]  	bit 0, a  	jr nz, .asm_4e7d  .asm_4e90 @@ -130,7 +130,7 @@ Func_4ed1: ; 4ed1 (1:4ed1)  	bit 7, a  	jp nz, InitializeSpriteFacingDirection  ; c1x1 >= $80  	ld b, a -	ld a, [wcfc4] +	ld a, [wCharRAMInUseForText]  	bit 0, a  	jp nz, notYetMoving  	ld a, b diff --git a/engine/overworld/pokemart.asm b/engine/overworld/pokemart.asm index 4bc4c341..8325b93f 100755 --- a/engine/overworld/pokemart.asm +++ b/engine/overworld/pokemart.asm @@ -50,9 +50,9 @@ DisplayPokemartDialogue_: ; 6c20 (1:6c20)  	call DisplayTextBoxID ; draw money text box  	ld hl,wNumBagItems  	ld a,l -	ld [wcf8b],a +	ld [wList],a  	ld a,h -	ld [wcf8c],a +	ld [wList + 1],a  	xor a  	ld [wcf93],a  	ld [wCurrentMenuItem],a @@ -124,9 +124,9 @@ DisplayPokemartDialogue_: ; 6c20 (1:6c20)  	call DisplayTextBoxID ; draw money text box  	ld hl,wStringBuffer2 + 11  	ld a,l -	ld [wcf8b],a +	ld [wList],a  	ld a,h -	ld [wcf8c],a +	ld [wList + 1],a  	xor a  	ld [wCurrentMenuItem],a  	inc a | 
