more logging; allow assembly of vote permission string
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4036 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+3
-2
@@ -566,7 +566,8 @@ int main(int argc, char **argv)
|
||||
|
||||
bool dedicated = false;
|
||||
int uprate = 0, maxcl = DEFAULTCLIENTS, kthreshold = -5, bthreshold = -6, port = 0, permdemo = -1;
|
||||
const char *sdesc = "", *sdesc_pre = "", *sdesc_suf = "", *ip = "", *master = NULL, *passwd = "", *maprot = NULL, *adminpwd = NULL, *pwdfile = NULL, *blfile = NULL, *srvmsg = NULL, *voteperms = NULL, *demop = NULL;
|
||||
const char *sdesc = "", *sdesc_pre = "", *sdesc_suf = "", *ip = "", *master = NULL, *passwd = "", *maprot = NULL, *adminpwd = NULL, *pwdfile = NULL, *blfile = NULL, *srvmsg = NULL, *demop = NULL;
|
||||
static string voteperms; voteperms[0] = '\0';
|
||||
|
||||
pushscontext(IEXC_CFG);
|
||||
|
||||
@@ -630,7 +631,7 @@ int main(int argc, char **argv)
|
||||
case 'y': bthreshold = atoi(a); break;
|
||||
case 'f': port = atoi(a); break;
|
||||
case 'D': permdemo = isdigit(*a) ? atoi(a) : 0; break;
|
||||
case 'P': voteperms = *a ? a : NULL; break;
|
||||
case 'P': s_strcat(voteperms, a); break;
|
||||
case 'W': demop = a; break;
|
||||
default: conoutf("unknown commandline option");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user