tab and formfeed cleanup
This commit is contained in:
@@ -949,7 +949,7 @@ int pingpckservers(void *data)
|
||||
pckserver *serv = &serverstoping[i];
|
||||
CURL *cu = curl_easy_init();
|
||||
curl_easy_setopt(cu, CURLOPT_URL, serv->addr);
|
||||
curl_easy_setopt(cu, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(cu, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(cu, CURLOPT_NOPROGRESS, 1);
|
||||
curl_easy_setopt(cu, CURLOPT_NOBODY, 1); // don't download response body (as its size may vary a lot from one server to another)
|
||||
curl_easy_setopt(cu, CURLOPT_CONNECTTIMEOUT, 10); // the timeout should be large here
|
||||
@@ -1075,7 +1075,7 @@ double dlpackage(package *pck)
|
||||
double dlsize;
|
||||
pck->curl = curl_easy_init();
|
||||
curl_easy_setopt(pck->curl, CURLOPT_URL, req);
|
||||
curl_easy_setopt(pck->curl, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(pck->curl, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(pck->curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||
curl_easy_setopt(pck->curl, CURLOPT_WRITEDATA, outfile);
|
||||
curl_easy_setopt(pck->curl, CURLOPT_NOPROGRESS, 0);
|
||||
|
||||
@@ -1409,7 +1409,7 @@ void callvote(int type, const char *arg1, const char *arg2, const char *arg3)
|
||||
|
||||
|
||||
|
||||
putint(p, atoi(arg1));
|
||||
putint(p, atoi(arg1));
|
||||
break;
|
||||
}
|
||||
sendpackettoserv(1, p.finalize());
|
||||
@@ -1537,14 +1537,14 @@ void setnext(char *mode, char *map)
|
||||
case GMODE_BOTDEATHMATCH:
|
||||
case GMODE_BOTONESHOTONEKILL:
|
||||
case GMODE_BOTLSS:
|
||||
case GMODE_BOTPISTOLFRENZY:
|
||||
case GMODE_BOTTEAMONESHOTONKILL:
|
||||
case GMODE_BOTPISTOLFRENZY:
|
||||
case GMODE_BOTTEAMONESHOTONKILL:
|
||||
continue;
|
||||
}
|
||||
if(!strcmp(mode, modestrings[i]))
|
||||
{
|
||||
nextmode=i+GMODE_NUM;
|
||||
string nm = ""; itoa(nm, nextmode);
|
||||
string nm = ""; itoa(nm, nextmode);
|
||||
callvote(SA_MAP, map, nm, "0");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3114,7 +3114,7 @@ void process(ENetPacket *packet, int sender, int chan)
|
||||
ls!=cl->state.lifesequence || cl->state.lastspawn<0 || gunselect<0 || gunselect>=NUMGUNS || gunselect == GUN_CPISTOL) break;
|
||||
cl->state.lastspawn = -1;
|
||||
cl->state.spawn = gamemillis;
|
||||
cl->autospawn = false;
|
||||
cl->autospawn = false;
|
||||
cl->upspawnp = false;
|
||||
cl->state.state = CS_ALIVE;
|
||||
cl->state.gunselect = gunselect;
|
||||
|
||||
+2
-2
@@ -256,7 +256,7 @@ struct client // server side version of "dynent" type
|
||||
bool at3_dontmove;
|
||||
int spawnindex;
|
||||
int spawnperm, spawnpermsent;
|
||||
bool autospawn;
|
||||
bool autospawn;
|
||||
int salt;
|
||||
string pwd;
|
||||
uint authreq; // for AUTH
|
||||
@@ -295,7 +295,7 @@ struct client // server side version of "dynent" type
|
||||
isonrightmap = m_coop;
|
||||
spawnperm = SP_WRONGMAP;
|
||||
spawnpermsent = servmillis;
|
||||
autospawn = false;
|
||||
autospawn = false;
|
||||
if(!getmap)
|
||||
{
|
||||
loggedwrongmap = false;
|
||||
|
||||
@@ -1353,7 +1353,7 @@ void retrieveservers(vector<char> &data)
|
||||
int result = 0, httpresult = 0;
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_URL, request);
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); // Fixes crashbug for some buggy libcurl versions (Linux)
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
|
||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
|
||||
|
||||
Reference in New Issue
Block a user