From 2af80825a371a6250b340a649d24245febc5e2a4 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 25 Jun 2023 18:16:17 +0200 Subject: [PATCH] solve_collision_slide no longer moves lhs arg --- src/corelib/physics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/physics.c b/src/corelib/physics.c index f289606..001348c 100644 --- a/src/corelib/physics.c +++ b/src/corelib/physics.c @@ -185,7 +185,7 @@ void solve_collision_slide(object_t* left, object_t* right) { float dx, dy; const float d = get_solve_force(left, right, &dx, &dy); left->sprite.x += dx; - right->sprite.y += dy; + left->sprite.y += dy; } static inline