*** 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
+2 -2
View File
@@ -127,15 +127,15 @@ alias tmp_mode
alias tmp_botmap
alias startbotmatch [
kickallbots
addnbot (div $tmp_numbots 2) RVSF $tmp_botskill
if ((> (mod $tmp_numbots 2) 0)) [ alias tmp_numbots (+ $tmp_numbots 1) ] []
addnbot (div $tmp_numbots 2) CLA $tmp_botskill
]
alias startbotmap [
disconnect
if $connected [ disconnect ]
echo starting botmatch..
kickallbots
sleep 5000 startbotmatch
mode $tmp_mode
map $tmp_botmap
+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);
+1 -1
View File
@@ -30,7 +30,7 @@ int lastx, lasty, lasth;
int lasttype = 0, lasttex = 0;
sqr rtex;
VAR(editing,0,0,1);
VAR(editing, 1, 0, 0);
void toggleedit()
{