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
This commit is contained in:
driAn
2008-05-17 10:34:55 +00:00
parent 3bd31e8e59
commit 7e27cbd269
+2 -2
View File
@@ -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;