solve_collision_slide no longer modifies rhs argument

pull/11/head
Sara 2023-06-25 18:16:17 +02:00
parent 9a732ad82f
commit 20ca626acf
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ void solve_collision_slide(object_t* left, object_t* right) {
float dx, dy; float dx, dy;
const float d = get_solve_force(left, right, &dx, &dy); const float d = get_solve_force(left, right, &dx, &dy);
left->sprite.x += dx; left->sprite.x += dx;
right->sprite.y += dy; left->sprite.y += dy;
} }
static inline static inline