fix sendmap leaving CFG empty if not in COOP

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5698 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-09-26 14:33:32 +00:00
parent a25deef7a3
commit a4133904ec
+1 -3
View File
@@ -83,12 +83,10 @@ struct servermapbuffer // sending of maps between clients
bool written = false;
if(!nmapname[0] || nmapsize <= 0 || ncfgsizegz < 0 || nmapsize + ncfgsizegz > MAXMAPSENDSIZE || ncfgsize > MAXCFGFILESIZE) return false; // malformed: probably modded client
int cfgsize = ncfgsize;
if(smode == GMODE_COOPEDIT && !strcmp(nmapname, behindpath(smapname)))
{ // update mapbuffer only in coopedit mode (and on same map)
copystring(mapname, nmapname);
cgzsize = nmapsize;
cfgsize = ncfgsize;
cfgsizegz = ncfgsizegz;
datasize = nmapsize + ncfgsizegz;
revision = 0;
DELETEA(data);