From 97b04db2a75e666e45e7b0f21bfa583527eb65cd Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sun, 26 Apr 2009 11:18:07 +0000 Subject: [PATCH] new default: record demo of every game git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4348 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/protos.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/src/protos.h b/source/src/protos.h index f846097c..96a1d215 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -741,7 +741,7 @@ struct servercommandline maxclients(DEFAULTCLIENTS), kickthreshold(-5), banthreshold(-6), verbose(0), ip(""), master(NULL), logident(""), serverpassword(""), adminpasswd(""), demopath(""), maprot("config/maprot.cfg"), pwdfile("config/serverpwd.cfg"), blfile("config/serverblacklist.cfg"), nbfile("config/nicknameblacklist.cfg"), - demoeverymatch(false), + demoeverymatch(true), clfilenesting(0) { motd[0] = servdesc_full[0] = servdesc_pre[0] = servdesc_suf[0] = voteperm[0] = '\0'; @@ -766,8 +766,11 @@ struct servercommandline case 'x': adminpasswd = a; break; case 'p': serverpassword = a; break; case 'D': - demoeverymatch = true; - if(isdigit(*a)) maxdemos = ai; + if(isdigit(*a)) + { + maxdemos = ai; + demoeverymatch = maxdemos > 0; + } break; case 'W': demopath = a; break; case 'r': maprot = a; break;