[client] Remove hud_href component

I had missed this when adapting the ecs system for modular systems.
This commit is contained in:
Bill Currie 2022-12-15 12:50:27 +09:00
parent 41d25df0d2
commit 61f61baf48
3 changed files with 1 additions and 6 deletions

View file

@ -31,7 +31,6 @@
struct view_s;
enum {
hud_href,
hud_update,
hud_updateonce,
hud_tile,

View file

@ -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",

View file

@ -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) {