From 613a50ffa3c1002be694cd1c670a1b1eff11413f Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Sun, 15 Aug 2010 00:01:59 +0000 Subject: [PATCH] FugBix: "name" command now saves correctly for people using [ or ] in their names. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5625 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 60422969..4c068fdd 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -898,7 +898,7 @@ void writecfg() stream *f = openfile(path("config/saved.cfg", true), "w"); if(!f) return; f->printf("// automatically written on exit, DO NOT MODIFY\n// delete this file to have defaults.cfg overwrite these settings\n// modify settings in game, or put settings in autoexec.cfg to override anything\n\n"); - f->printf("name %s\n", player1->name); + f->printf("name \"%s\"\n", player1->name); extern const char *crosshairnames[CROSSHAIR_NUM]; extern Texture *crosshairs[CROSSHAIR_NUM]; loopi(CROSSHAIR_NUM) if(crosshairs[i] && crosshairs[i]!=notexture)