From 49459cd2159206af875418e5266124c2d2414d74 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 9 May 2008 20:22:42 +0000 Subject: [PATCH] only write init.cfg when using --init git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1899 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/main.cpp b/source/src/main.cpp index a154fe59..3ded9f95 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -83,6 +83,7 @@ VARF(fullscreen, 0, 1, 1, setfullscreen(fullscreen!=0)); void writeinitcfg() { + if(!restoredinits) return; FILE *f = openfile(path("config/init.cfg", true), "w"); if(!f) return; fprintf(f, "// automatically written on exit, DO NOT MODIFY\n// modify settings in game\n");