*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@922 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-05 00:02:00 +00:00
parent 80c65afd71
commit 4da0293a90
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -3,6 +3,8 @@
#include "cube.h"
#include "bot/bot.h"
VAR(connected, 1, 0, 0);
ENetHost *clienthost = NULL;
ENetPeer *curpeer = NULL, *connpeer = NULL;
int connmillis = 0, connattempts = 0, discmillis = 0;
@@ -121,6 +123,7 @@ void disconnect(int onlyclean, int async)
}
curpeer = NULL;
discmillis = 0;
connected = 0;
conoutf("disconnected");
cleanup = true;
}
@@ -345,6 +348,7 @@ void gets2c() // get updates from the server
disconnect(1);
curpeer = connpeer;
connpeer = NULL;
connected = 1;
conoutf("connected to server");
throttle();
if(rate) setrate(rate);