Compare commits

...

2 Commits

2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ object_t object_default();
void object_draw_sprite(object_t* object);
static inline
int object_is_valid(object_t* object) {
int object_is_valid(const object_t* object) {
return object == NULL || object->active == 0;
}

View File

@ -24,7 +24,7 @@ void object_broadcast_collision(object_t* this, object_t* other) {
}
}
short can_collide(const object_t* this) {
return this->active && this->enabled;
return object_is_valid(this) && this->enabled;
}
static inline