From 7e27cbd2696c01eb0fdaa08b097f7aad69a5affa Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 17 May 2008 10:34:55 +0000 Subject: [PATCH] also delete init.cfg on settings reset git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2004 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index bdd3e403..3b6a7e46 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -567,9 +567,9 @@ COMMAND(writecfg, ARG_NONE); bool deletecfg() { - if(!delfile("config/saved.cfg")) + if(!delfile("config/saved.cfg") || !delfile("config/init.cfg")) { - conoutf("could not delete the file config/saved.cfg"); + conoutf("could not delete the configuration"); return false; } return true;