From a291ff72d499583825a9d3cc051b17100770352f Mon Sep 17 00:00:00 2001 From: byoung Date: Wed, 15 Nov 2023 18:00:32 -0600 Subject: [PATCH] remove old skybox --- c1k3-assets | 2 +- entity_skybox.c | 4 +++- map.c | 11 ----------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/c1k3-assets b/c1k3-assets index 7a6de31..127e482 160000 --- a/c1k3-assets +++ b/c1k3-assets @@ -1 +1 @@ -Subproject commit 7a6de311eaa2a7aa07e030d626cfb1320c2284df +Subproject commit 127e4826f6ecaa6b90b624b8b36777f151074564 diff --git a/entity_skybox.c b/entity_skybox.c index 7eda9f3..e32d84f 100644 --- a/entity_skybox.c +++ b/entity_skybox.c @@ -18,7 +18,9 @@ void entity_skybox_constructor(entity_t * e) { void entity_skybox_init(entity_t * e) { // todo entity_set_model(e); - e->s = (vec3_t){0}; + e->s = (vec3_t) { + 0 + }; } void entity_skybox_update(entity_t * e) { diff --git a/map.c b/map.c index 6d3cd30..b0295c9 100644 --- a/map.c +++ b/map.c @@ -619,17 +619,6 @@ void map_draw() { } } -typedef struct { - vector * blocks; - uint8_t * e; - // map_entities and ref_entities is for new map format only - vector * map_entities; // entity_params_t - vector * ref_entities; // ref_entt_t - vector * ref_ent_index; // size_t - uint32_t e_size; - uint8_t cm[((map_size * map_size * map_size) >> 3)]; -} map_ts; - void map_quit() { uint32_t len = vector_size(map_data); for(uint32_t i = 0; i < len; i++) {