More engine flag constants

This commit is contained in:
Rangi
2018-01-22 14:34:55 -05:00
parent 125d51b3b2
commit 4d8528f903
27 changed files with 75 additions and 54 deletions

View File

@@ -2543,7 +2543,7 @@ RefreshPlayerSprite: ; 579d
.TryResetPlayerAction: ; 57bc
ld hl, wPlayerSpriteSetupFlags
bit 7, [hl]
bit PLAYERSPRITESETUP_RESET_ACTION_F, [hl]
jr nz, .ok
ret
@@ -2555,10 +2555,10 @@ RefreshPlayerSprite: ; 579d
.SpawnInCustomFacing: ; 57ca
ld hl, wPlayerSpriteSetupFlags
bit 5, [hl]
bit PLAYERSPRITESETUP_CUSTOM_FACING_F, [hl]
ret z
ld a, [wPlayerSpriteSetupFlags]
and 3
and PLAYERSPRITESETUP_FACING_MASK
add a
add a
jr ContinueSpawnFacing