mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
[scene] Swtich from - to ~ for entity id index
It saves only 1 bit in the set, but it could save on allocations. Also takes care of a FIXME :P
This commit is contained in:
parent
76124ab868
commit
8ec4a18f5d
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ ENTINLINE
|
|||
void
|
||||
EntQueue_AddEntity (entqueue_t *queue, entity_t *ent, int queue_num)
|
||||
{
|
||||
int id = -ent->id;//FIXME use ~
|
||||
int id = ~ent->id;
|
||||
if (!set_is_member (queue->queued_ents, id)) {
|
||||
// entity ids are negative (ones-complement)
|
||||
set_add (queue->queued_ents, id);
|
||||
|
|
Loading…
Reference in a new issue