From 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 09:02:04 +1000 Subject: Menus, game over, dying, etc. --- world.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'world.c') diff --git a/world.c b/world.c index 920484c..39673d4 100644 --- a/world.c +++ b/world.c @@ -3,7 +3,10 @@ #include "error.h" void init_world(World* world) { - world->entity_count = 0; + int i, s = sizeof world; + for (i = 0; i < s; i++) { + ((char*)world)[i] = 0; + } } Entity new_entity(World* world) { -- cgit v1.2.3-54-g00ecf