Fix warnings for gcc 9.3
This commit is contained in:
@@ -216,7 +216,7 @@ void save_world(char *mname)
|
||||
if(mapbackupsonsave) backup(cgzname, bakname);
|
||||
stream *f = opengzfile(cgzname, "wb");
|
||||
if(!f) { conoutf("could not write map to %s", cgzname); return; }
|
||||
strncpy(hdr.head, "ACMP", 4); // ensure map now declares itself as an AssaultCube map, even if imported as CUBE
|
||||
copystring(hdr.head, "ACMP", 4); // ensure map now declares itself as an AssaultCube map, even if imported as CUBE
|
||||
hdr.version = MAPVERSION;
|
||||
hdr.numents = 0;
|
||||
loopv(ents) if(ents[i].type!=NOTUSED) hdr.numents++;
|
||||
@@ -565,4 +565,4 @@ bool load_world(char *mname) // still supports all map formats that have
|
||||
return true;
|
||||
}
|
||||
|
||||
COMMANDN(savemap, save_world, "s");
|
||||
COMMANDN(savemap, save_world, "s");
|
||||
|
||||
Reference in New Issue
Block a user