fix connect-by-console not working w/o updatefrommaster - Brahma, please re-check your fix is still working!
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5820 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1268,7 +1268,7 @@ void clearservers()
|
||||
|
||||
#define RETRIEVELIMIT 20000
|
||||
extern char *global_name;
|
||||
bool cllock = true, clfail = false;
|
||||
bool cllock = false, clfail = false;
|
||||
|
||||
void retrieveservers(vector<char> &data)
|
||||
{
|
||||
@@ -1337,6 +1337,7 @@ VARP(masterupdatefrequency, 1, 60*60, 24*60*60);
|
||||
void updatefrommaster(int force)
|
||||
{
|
||||
static int lastupdate = 0;
|
||||
if(lastupdate==0) cllock = true;
|
||||
if(!force && lastupdate && totalmillis-lastupdate<masterupdatefrequency*1000) return;
|
||||
|
||||
vector<char> data;
|
||||
|
||||
Reference in New Issue
Block a user