mapsave fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@156 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-01-31 21:21:30 +00:00
parent 611b943667
commit 34b8e85b89
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ void save_world(char *mname)
backup(cgzname, bakname);
gzFile f = gzopen(cgzname, "wb9");
if(!f) { conoutf("could not write map to %s", (int)cgzname); return; };
hdr.version = 5; //MAPVERSION;
hdr.version = MAPVERSION;
hdr.numents = 0;
loopv(ents) if(ents[i].type!=NOTUSED) hdr.numents++;
header tmp = hdr;