empty configsets check

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4806 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-05-04 20:01:37 +00:00
parent 21c9b755dc
commit a161b18a53
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ int main(int argc, char **argv)
const char *dir = "", *ip = AC_MASTER_URI;
int port = AC_MASTER_PORT;
if(argc>=2) dir = argv[1];
if(argc>=3) port = atoi(argv[2]);
if(argc>=3 && argv[2][0]) port = atoi(argv[2]);
if(argc>=4) ip = argv[3][0] ? argv[3] : NULL;
defformatstring(logname)("%smaster.log", dir);
defformatstring(cfgname)("%smaster.cfg", dir);
+1
View File
@@ -288,6 +288,7 @@ struct servermaprot : serverconfigfile
return -1;
}
#endif
if(configsets.empty()) fatal("maprot unavailable");
int n = numclients();
int csl = configsets.length();
int ccs = curcfgset;