Searched refs:cfgsizegz (Results 1 – 4 of 4) sorted by relevance
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/ |
H A D | client.cpp | 757 int mapsize, cfgsize, cfgsizegz, revision; in sendmap() local 760 uchar *cfgdata = readmcfggz(path(mapname), &cfgsize, &cfgsizegz); in sendmap() 761 if(!cfgdata) { cfgsize = 0; cfgsizegz = 0; } in sendmap() 763 packetbuf p(MAXTRANS + mapsize + cfgsizegz, ENET_PACKET_FLAG_RELIABLE); in sendmap() 769 putint(p, cfgsizegz); in sendmap() 771 if(MAXMAPSENDSIZE - p.length() < mapsize + cfgsizegz || cfgsize > MAXCFGFILESIZE) in sendmap() 780 if(cfgsizegz) in sendmap() 782 p.put(cfgdata, cfgsizegz); in sendmap()
|
H A D | serverfiles.h | 14 int cgzsize, cfgsize, cfgsizegz, revision, datasize; member 65 cfgsizegz = (int) gzbufsize; in load() 66 if(cgzsize + cfgsizegz < MAXMAPSENDSIZE) in load() 69 datasize = cgzsize + cfgsizegz; in load() 72 memcpy(data + cgzsize, gzbuf, cfgsizegz); in load() 73 … logline(ACLOG_INFO,"loaded map %s, %d + %d(%d) bytes.", cgzname, cgzsize, cfgsize, cfgsizegz); in load() 127 putint(p, cfgsizegz); in sendmap()
|
H A D | clients2c.cpp | 1489 int cfgsizegz = getint(p); in receivefile() local 1491 int size = mapsize + cfgsizegz; in receivefile() 1492 … if(MAXMAPSENDSIZE < mapsize + cfgsizegz || cfgsize > MAXCFGFILESIZE) { // sam's suggestion in receivefile() 1507 writecfggz(path(text), cfgsize, cfgsizegz, &p.buf[p.len]); in receivefile() 1508 p.len += cfgsizegz; in receivefile()
|
H A D | server.cpp | 3299 int cfgsizegz = getint(p); in process() local 3301 if(p.remaining() < mapsize + cfgsizegz || MAXMAPSENDSIZE < mapsize + cfgsizegz) in process() 3313 …else if( scl.incoming_limit && ( scl.incoming_limit << 20 ) < incoming_size + mapsize + cfgsizegz ) in process() 3335 if(mapbuffer.sendmap(sentmap, mapsize, cfgsize, cfgsizegz, &p.buf[p.len])) in process() 3337 incoming_size += mapsize + cfgsizegz; in process() 3339 … clients[sender]->hostname, clients[sender]->name, sentmap, revision, mapsize, cfgsize, cfgsizegz); in process() 3355 p.len += mapsize + cfgsizegz; in process()
|