Rename wVramState to wStateFlags and use flag constants (#1078)
This commit is contained in:
@@ -95,10 +95,10 @@ RunMobileTradeAnim_Frontpics:
|
||||
push af
|
||||
xor a
|
||||
ldh [hMapAnims], a
|
||||
ld hl, wVramState
|
||||
ld hl, wStateFlags
|
||||
ld a, [hl]
|
||||
push af
|
||||
res 0, [hl]
|
||||
res SPRITE_UPDATES_DISABLED_F, [hl]
|
||||
ld hl, wOptions
|
||||
ld a, [hl]
|
||||
push af
|
||||
@@ -110,7 +110,7 @@ RunMobileTradeAnim_Frontpics:
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ldh [hMapAnims], a
|
||||
ret
|
||||
@@ -124,7 +124,7 @@ RunMobileTradeAnim_NoFrontpics:
|
||||
push af
|
||||
xor a
|
||||
ldh [hMapAnims], a
|
||||
ld hl, wVramState
|
||||
ld hl, wStateFlags
|
||||
ld a, [hl]
|
||||
push af
|
||||
res 0, [hl]
|
||||
@@ -139,7 +139,7 @@ RunMobileTradeAnim_NoFrontpics:
|
||||
pop af
|
||||
ld [wOptions], a
|
||||
pop af
|
||||
ld [wVramState], a
|
||||
ld [wStateFlags], a
|
||||
pop af
|
||||
ldh [hMapAnims], a
|
||||
ret
|
||||
|
Reference in New Issue
Block a user