diff --git a/include/QF/scene/entity.h b/include/QF/scene/entity.h index 2345ac3e2..373c81f1a 100644 --- a/include/QF/scene/entity.h +++ b/include/QF/scene/entity.h @@ -113,9 +113,10 @@ ENTINLINE void EntQueue_AddEntity (entqueue_t *queue, entity_t *ent, int queue_num) { - if (!set_is_member (queue->queued_ents, ent->id)) { + int id = -ent->id;//FIXME use ~ + if (!set_is_member (queue->queued_ents, id)) { // entity ids are negative (ones-complement) - set_add (queue->queued_ents, -ent->id);//FIXME use ~ + set_add (queue->queued_ents, id); DARRAY_APPEND (&queue->ent_queues[queue_num], ent); } }