Fix warnings for gcc 9.3

This commit is contained in:
aurhat
2020-11-03 22:15:34 +01:00
parent 2ecb3646e1
commit 8bb1aba638
9 changed files with 21 additions and 16 deletions
+2 -2
View File
@@ -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");