added objecadded object_is_valid

pull/12/head
Sara 2023-07-12 02:06:40 +02:00
parent 1eb8ab2fd9
commit a5c6a7eceb
1 changed files with 5 additions and 1 deletions

View File

@ -24,5 +24,9 @@ struct object_t {
object_t object_default(); object_t object_default();
void object_draw_sprite(object_t* object); void object_draw_sprite(object_t* object);
static inline
int object_is_valid(object_t* object) {
return object != NULL || object->active <= 0;
}
#endif /* _object_h */ #endif /* _object_h */