Use maskbits some more
This commit is contained in:
@@ -140,7 +140,7 @@ DoPlayerMovement:: ; 80000
|
||||
|
||||
.water
|
||||
ld a, c
|
||||
and 3
|
||||
maskbits NUM_DIRECTIONS +- 1
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld hl, .water_table
|
||||
@@ -244,7 +244,7 @@ DoPlayerMovement:: ; 80000
|
||||
ld a, [PlayerDirection]
|
||||
rrca
|
||||
rrca
|
||||
and 3
|
||||
maskbits NUM_DIRECTIONS +- 1
|
||||
cp e
|
||||
jr z, .not_turning
|
||||
|
||||
@@ -430,7 +430,7 @@ DoPlayerMovement:: ; 80000
|
||||
ld a, [PlayerDirection]
|
||||
rrca
|
||||
rrca
|
||||
and 3
|
||||
maskbits NUM_DIRECTIONS +- 1
|
||||
cp e
|
||||
jr nz, .not_warp
|
||||
call WarpCheck
|
||||
@@ -559,7 +559,7 @@ DoPlayerMovement:: ; 80000
|
||||
cp 0
|
||||
ret z
|
||||
|
||||
and 3
|
||||
maskbits NUM_DIRECTIONS +- 1
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .forced_dpad
|
||||
|
Reference in New Issue
Block a user