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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user