From 09b1ad7fc38df8b3f8ac4751da9048e585bb9905 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 11 Aug 2025 17:54:38 +0200 Subject: [PATCH] defs: fixed player rt macros --- src/defs.s | 6 +++--- src/macros.inc | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/defs.s b/src/defs.s index a282bc9..fa23635 100644 --- a/src/defs.s +++ b/src/defs.s @@ -165,14 +165,14 @@ ; actor runtime values - ; last collision with actor - ; set during unit_collision_woth_any_other -.de act_rt_collided_with, 2 ; last collision flags .de act_rt_collision_cf, 1 ; last collision tile position .de act_rt_collision_pos_y, 1 .de act_rt_collision_pos_x, 1 + ; last collision with actor + ; set during unit_collision_woth_any_other +.de act_rt_collided_with, 2 ; sub-tile drawing vars ; during this animation the actor is already technically in its new diff --git a/src/macros.inc b/src/macros.inc index 03a62c5..e3c2580 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -182,7 +182,9 @@ .db $3 ; y pos .db $4 ; x pos .db $5 ; p0 - + + ; act rt collision cf, pos y, pos x + .db 0, 0, 0 ; act_rt_collided_with dw 0 .db 0 ; act_rt_sub_tile -- 2.30.2