diff options
author | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-06 09:02:04 +1000 |
commit | 2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (patch) | |
tree | e608ebd0bea71570be0a3619f9848f975669e5ef /world.c | |
parent | fb104368dd33b66e0575dcc0327cbae7046a4e1e (diff) |
Menus, game over, dying, etc.
Diffstat (limited to 'world.c')
-rw-r--r-- | world.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |