inverted _can_collide guard clause in interpolate_move
parent
f8d69e3537
commit
8ae7d302fe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue