mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[client] Remove hud_href component
I had missed this when adapting the ecs system for modular systems.
This commit is contained in:
parent
41d25df0d2
commit
61f61baf48
3 changed files with 1 additions and 6 deletions
|
@ -31,7 +31,6 @@
|
|||
struct view_s;
|
||||
|
||||
enum {
|
||||
hud_href,
|
||||
hud_update,
|
||||
hud_updateonce,
|
||||
hud_tile,
|
||||
|
|
|
@ -42,10 +42,6 @@
|
|||
#include "client/hud.h"
|
||||
|
||||
static const component_t hud_components[hud_comp_count] = {
|
||||
[hud_href] = {
|
||||
.size = sizeof (hierref_t),
|
||||
.name = "href",
|
||||
},
|
||||
[hud_update] = {
|
||||
.size = sizeof (hud_update_f),
|
||||
.name = "update",
|
||||
|
|
|
@ -2025,7 +2025,7 @@ href_cmp (const void *_a, const void *_b, void *arg)
|
|||
uint32_t enta = *(const uint32_t *)_a;
|
||||
uint32_t entb = *(const uint32_t *)_b;
|
||||
ecs_registry_t *reg = hud_viewsys.reg;
|
||||
uint32_t href = hud_viewsys.base + hud_href;
|
||||
uint32_t href = hud_viewsys.base + view_href;
|
||||
hierref_t *ref_a = Ent_GetComponent (enta, href, reg);
|
||||
hierref_t *ref_b = Ent_GetComponent (entb, href, reg);
|
||||
if (ref_a->hierarchy == ref_b->hierarchy) {
|
||||
|
|
Loading…
Reference in a new issue