added objecadded object_is_valid
parent
1eb8ab2fd9
commit
a5c6a7eceb
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue