this is not so effective, so, undoing partially
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5136 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+1
-1
@@ -867,7 +867,7 @@ int main(int argc, char **argv)
|
||||
exec("config/sounds.cfg");
|
||||
exec("config/securemaps.cfg");
|
||||
exec("config/admin.cfg");
|
||||
// execfile("config/servers.cfg"); // do not execute it now
|
||||
execfile("config/servers.cfg");
|
||||
persistidents = true;
|
||||
|
||||
static char resdata[] = { 112, 97, 99, 107, 97, 103, 101, 115, 47, 116, 101, 120, 116, 117, 114, 101, 115, 47, 107, 117, 114, 116, 47, 107, 108, 105, 116, 101, 50, 46, 106, 112, 103, 0 };
|
||||
|
||||
@@ -1268,7 +1268,7 @@ void clearservers()
|
||||
|
||||
#define RETRIEVELIMIT 20000
|
||||
extern char *global_name;
|
||||
bool cllock = true, serverscfgread = false;
|
||||
bool cllock = true;
|
||||
|
||||
void retrieveservers(vector<char> &data)
|
||||
{
|
||||
@@ -1337,8 +1337,7 @@ void updatefrommaster(int force)
|
||||
retrieveservers(data);
|
||||
|
||||
if(data.empty()) {
|
||||
conoutf("master server not replying");
|
||||
if ( !serverscfgread ) { execfile("config/servers.cfg"); serverscfgread = true;}
|
||||
conoutf("Master server not replying. \f1Get more info in http://assault.cubers.net");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1353,10 +1352,12 @@ void updatefrommaster(int force)
|
||||
}
|
||||
|
||||
clearservers();
|
||||
if ( !strncmp(data.getbuf(), "addserver", 9) ) cllock = false;
|
||||
if ( !cllock ) execute(data.getbuf());
|
||||
if ( !strncmp(data.getbuf(), "addserver", 9) ) cllock = false; // the ms could reply other thing... but currently, this is useless
|
||||
if ( !cllock ) {
|
||||
execute(data.getbuf());
|
||||
if(curserver) addserver(curname, curport, curweight);
|
||||
}
|
||||
|
||||
if(curserver) addserver(curname, curport, curweight);
|
||||
lastupdate = totalmillis;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user