Remove all default arguments from protos.h

FossilOrigin-Name: ef1d7e47f7204700ed6e3b1191a1bdcb6e1d0257586183bc6571b8ff92464042
This commit is contained in:
Jonathan Schleifer 2025-03-20 20:38:43 +00:00
parent d9d56601bb
commit 2085a651bd
18 changed files with 81 additions and 69 deletions

View file

@ -262,7 +262,7 @@ load_world(OFString *mname) // still supports all map formats that have existed
{
stopifrecording();
cleardlights();
pruneundos();
pruneundos(0);
setnames(mname);
gzFile f =
gzopen([cgzname cStringWithEncoding:OFLocale.encoding], "rb9");
@ -350,13 +350,10 @@ load_world(OFString *mname) // still supports all map formats that have existed
break;
}
default: {
if (type < 0 || type >= MAXTYPE) {
OFString *t = [OFString
stringWithFormat:@"%d @ %d", type, k];
fatal(@"while reading map: type out of "
@"range: ",
t);
}
if (type < 0 || type >= MAXTYPE)
fatal(@"while reading map: type out of range: "
@"%d @ %d",
type, k);
s->type = type;
s->floor = gzgetc(f);
s->ceil = gzgetc(f);