inverted _can_collide guard clause in interpolate_move

pull/6/head
Sara 2023-06-18 11:59:13 +02:00
parent f8d69e3537
commit 8ae7d302fe
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ object_t* interpolate_move(object_t* object, float target_x, float target_y, flo
// ensure this object would ever collide
// if it wouldn't collide anyway, just set position
if(_can_collide(object)) {
if(!_can_collide(object)) {
object->sprite.x = target_x;
object->sprite.y = target_y;
return NULL;