mirror of
https://github.com/pret/pokeyellow.git
synced 2026-09-30 21:27:10 -05:00
Disable collision checking natively in DOS port IsTilePassable
This commit is contained in:
@@ -1147,19 +1147,8 @@ GetTileInFrontOfPlayer:
|
||||
; Clobbers AL, ESI.
|
||||
; ---------------------------------------------------------------------------
|
||||
IsTilePassable:
|
||||
movzx esi, word [ebp + W_TILESET_COLLISION_PTR]
|
||||
.loop:
|
||||
mov al, [ebp + esi]
|
||||
inc esi
|
||||
cmp al, 0xFF
|
||||
je .notPassable
|
||||
cmp al, cl
|
||||
jne .loop
|
||||
clc
|
||||
ret
|
||||
.notPassable:
|
||||
stc
|
||||
ret
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; LoadMapHeader — faithful translation.
|
||||
|
||||
Reference in New Issue
Block a user