diff --git a/src/corelib/world.c b/src/corelib/world.c index a513867..11a8d82 100644 --- a/src/corelib/world.c +++ b/src/corelib/world.c @@ -195,9 +195,8 @@ object_t* interpolate_move(object_t* object, float target_x, float target_y, flo for(int i = 0; i < WORLD_NUM_OBJECTS; ++i) { // get pointer to other object object_t* other = g_objects + i; - if(!_can_collide(other)) continue; // check collision, return if found - if(object != other && _collision_check(other, object)) { + if(_can_collide(other) && object != other && _collision_check(other, object)) { other->collider.evt_collision(other, object); object->collider.evt_collision(object, other); return other;