aboutsummaryrefslogtreecommitdiff
path: root/world.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 09:02:04 +1000
committerquou <quou@disroot.org>2023-05-06 09:02:04 +1000
commit2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch)
treee608ebd0bea71570be0a3619f9848f975669e5ef /world.c
parentfb104368dd33b66e0575dcc0327cbae7046a4e1e (diff)
Menus, game over, dying, etc.
Diffstat (limited to 'world.c')
-rw-r--r--world.c5
1 files changed, 4 insertions, 1 deletions
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) {