Index: src/worldio.mm ================================================================== --- src/worldio.mm +++ src/worldio.mm @@ -133,16 +133,16 @@ setnames(mname); backup(cgzname, bakname); FILE *f = fopen([cgzname cStringWithEncoding:OFLocale.encoding], "wb"); if (!f) { - conoutf(@"could not write map to %s", cgzname); + conoutf(@"could not write map to %@", cgzname); return; } fwrite(mdata, 1, msize, f); fclose(f); - conoutf(@"wrote map %@ as file %s", mname, cgzname); + conoutf(@"wrote map %@ as file %@", mname, cgzname); } OFData * readmap(OFString *mname) { @@ -168,11 +168,11 @@ setnames(mname); backup(cgzname, bakname); gzFile f = gzopen( [cgzname cStringWithEncoding:OFLocale.encoding], "wb9"); if (!f) { - conoutf(@"could not write map to %s", cgzname); + conoutf(@"could not write map to %@", cgzname); return; } hdr.version = MAPVERSION; hdr.numents = 0; loopv(ents) if (ents[i].type != NOTUSED) hdr.numents++; @@ -240,11 +240,11 @@ } t = s; } spurge; gzclose(f); - conoutf(@"wrote map file %s", cgzname); + conoutf(@"wrote map file %@", cgzname); settagareas(); } } COMMANDN(savemap, save_world, ARG_1STR) @@ -258,11 +258,11 @@ pruneundos(); setnames(mname); gzFile f = gzopen( [cgzname cStringWithEncoding:OFLocale.encoding], "rb9"); if (!f) { - conoutf(@"could not read map %s", cgzname); + conoutf(@"could not read map %@", cgzname); return; } gzread(f, &hdr, sizeof(header) - sizeof(int) * 16); endianswap(&hdr.version, sizeof(int), 4); if (strncmp(hdr.head, "CUBE", 4) != 0) @@ -370,11 +370,11 @@ gzclose(f); calclight(); settagareas(); int xs, ys; loopi(256) if (texuse) lookuptexture(i, &xs, &ys); - conoutf(@"read map %s (%d milliseconds)", cgzname, + conoutf(@"read map %@ (%d milliseconds)", cgzname, SDL_GetTicks() - lastmillis); conoutf(@"%s", hdr.maptitle); startmap(mname); loopl(256) {