From 784037a8faa3db49533ec54b786ce51914ae9121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Thu, 13 May 2021 15:05:48 +0200 Subject: [PATCH] entity cleanup disable + remark --- code/game/source/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/source/game.c b/code/game/source/game.c index 2a9c06a..7223d9e 100644 --- a/code/game/source/game.c +++ b/code/game/source/game.c @@ -169,6 +169,8 @@ void game_action_send_keystate(float x, float y, uint8_t use, uint8_t sprint) { } void game_world_cleanup_entities(void) { + // TODO(zaklaus): not the best approach to do a cleanup, let memory stay for a while as it might be reused later on anyway. +#if 0 for (int i = 0; i < zpl_buffer_count(world_viewers); i += 1){ entity_view_tbl *view = &world_viewers[i].entities; @@ -180,5 +182,5 @@ void game_world_cleanup_entities(void) { } } - +#endif }