mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 07:32:02 +00:00
[scene] Make nullentity's id nullent
While an entity with a null registry is null regardless of the id, setting the id to nullent is useful for other purposes. Fixes the disappearing brush models in the vulkan renderer (it uses entity id + 1 for indexing), and prevents similar issues in the future.
This commit is contained in:
parent
767b39b7bd
commit
88e59e72c4
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ typedef struct entity_s {
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
} entity_t;
|
} entity_t;
|
||||||
|
|
||||||
#define nullentity ((entity_t) {})
|
#define nullentity ((entity_t) { .id = nullent })
|
||||||
|
|
||||||
typedef struct animation_s {
|
typedef struct animation_s {
|
||||||
int frame;
|
int frame;
|
||||||
|
|
Loading…
Reference in a new issue