A game engine for top-down 2D RPG games.
rpg game-engine raylib c99

Fix newgame

Changed files
+2 -14
src
tools
+2
src/bini.c
··· 1 + #ifndef bini_impl 1 2 #define bini_impl 3 + #endif 2 4 #include <keraforge/bini.h>
-14
tools/newgame.c
··· 87 87 kf_loginfo("saving world to %s (%lu bytes uncompressed)", worldpath, len); 88 88 kf_timeit("save world", kf_world_save(world, compress, worldpath)); 89 89 90 - if (compress) 91 - { 92 - char worldxzpath[4096] = {0}; 93 - strcpy(worldxzpath, path); 94 - strcpy(&worldxzpath[0] + strlen(path), "/map.bin.xz"); 95 - kf_timeit("compress world", { 96 - if (!kf_compress(worldpath, worldxzpath)) 97 - { 98 - KF_THROW("failed to compress %s", worldpath); 99 - } 100 - }); 101 - remove(worldpath); /* no longer needed */ 102 - } 103 - 104 90 free(world); 105 91 }