mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2025-02-11 08:30:25 +00:00
Fix pre-shift bug in the tile address calculation
This commit is contained in:
parent
4338b64338
commit
4d224a92d9
@ -61,7 +61,7 @@ _GetTileAddr
|
||||
bit #2*TILE_HFLIP_BIT ; Check if the horizontal flip bit is set
|
||||
beq :no_flip
|
||||
inc ; Set the LSB
|
||||
:no_flip and #TILE_ID_MASK ; Mask out non-id bits
|
||||
:no_flip and #TILE_ID_MASK*2 ; Mask out non-id bits
|
||||
asl ; x4
|
||||
asl ; x8
|
||||
asl ; x16
|
||||
|
Loading…
x
Reference in New Issue
Block a user