From fc95d583f344f13501fcb6681f67b226c00528da Mon Sep 17 00:00:00 2001 From: Bukz Date: Sat, 14 May 2011 19:38:56 +0000 Subject: [PATCH] saved.cfg cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6437 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/on_quit.cfg | 1 + source/src/command.cpp | 2 +- source/src/console.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/on_quit.cfg b/config/on_quit.cfg index 085090d9..ae9a17fb 100644 --- a/config/on_quit.cfg +++ b/config/on_quit.cfg @@ -20,6 +20,7 @@ on_quit_aliases = [ sbdesc sbdns sbport + tmpCCO tmp_botmap tmp_botskill tmp_cl diff --git a/source/src/command.cpp b/source/src/command.cpp index c0c41675..ba993101 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -1293,7 +1293,7 @@ void writecfg() enumerate(*idents, ident, id, if(id.type==ID_ALIAS && id.persist && id.action[0]) { - f->printf("alias \"%s\" [%s]\n", id.name, id.action); + f->printf("%s = [%s]\n", id.name, id.action); } ); f->printf("\n"); diff --git a/source/src/console.cpp b/source/src/console.cpp index fa98144c..2f2e6682 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -521,7 +521,7 @@ void writebinds(stream *f) { loopv(keyms) { - if(*keyms[i].action) f->printf("bind \"%s\" [%s]\n", keyms[i].name, keyms[i].action); + if(*keyms[i].action) f->printf("bind %s [%s]\n", keyms[i].name, keyms[i].action); } }