inverted correction collision_check

pull/8/head
Sara 2023-06-18 14:27:24 +02:00
parent dff8e8304d
commit ea3beddfec
1 changed files with 2 additions and 2 deletions

View File

@ -210,11 +210,11 @@ void interpolate_move(object_t* object, float target_x, float target_y, float ma
object_broadcast_collision(object, other);
if(slide) {
object->sprite.x = old_x;
if(_collision_check(other, object)) {
if(!_collision_check(other, object)) {
object->sprite.x = new_x;
}
object->sprite.y = old_y;
if(_collision_check(other, object)) {
if(!_collision_check(other, object)) {
object->sprite.y = new_y;
}
} else {