differentiating masterserver real states

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5805 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-11-04 17:40:17 +00:00
parent 98a473dd66
commit 6a194a9680
2 changed files with 15 additions and 5 deletions
+3
View File
@@ -9,6 +9,8 @@ ENetHost *clienthost = NULL;
ENetPeer *curpeer = NULL, *connpeer = NULL;
int connmillis = 0, connattempts = 0, discmillis = 0;
bool watchingdemo = false;
extern bool clfail, cllock;
extern int searchlan;
int getclientnum() { return player1 ? player1->clientnum : -1; }
@@ -65,6 +67,7 @@ void connectserv_(const char *servername, const char *serverport = NULL, const c
if (!serverport) serverport = defaultport;
extern void enddemoplayback();
if(watchingdemo) enddemoplayback();
if(!clfail && cllock && searchlan<2) return;
if(connpeer)
{