aboutsummaryrefslogtreecommitdiff
path: root/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'game.c')
-rw-r--r--game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.c b/game.c
index 168cae4..87fea13 100644
--- a/game.c
+++ b/game.c
@@ -223,7 +223,7 @@ bool LoadMap(const char *filename) {
223 return true; 223 return true;
224} 224}
225 225
226void InitGame(void) { 226void InitGame(const char* map_path) {
227 array_init(texture_cache); 227 array_init(texture_cache);
228 game.world_models = NULL; 228 game.world_models = NULL;
229 game.world_model_count = 0; 229 game.world_model_count = 0;
@@ -238,7 +238,7 @@ void InitGame(void) {
238 game.font_ui = GetFontDefault(); 238 game.font_ui = GetFontDefault();
239 } 239 }
240 240
241 LoadMap("maps/demo1.map"); 241 LoadMap(map_path);
242 242
243 game.cursor_captured = false; 243 game.cursor_captured = false;
244 EnableCursor(); 244 EnableCursor();