Make conoutf take an OFString

FossilOrigin-Name: f8f97851f3ec3f0920a95912e7bfe58995f5ca1bcd4c5b5ee3532cb1809eab46
This commit is contained in:
Jonathan Schleifer 2024-08-03 17:02:33 +00:00
parent faf0a4096e
commit 7f42da935a
21 changed files with 240 additions and 221 deletions

View file

@ -293,11 +293,11 @@ delent()
{
int e = closestent();
if (e < 0) {
conoutf("no more entities");
conoutf(@"no more entities");
return;
};
int t = ents[e].type;
conoutf("%s entity deleted", entnames[t]);
conoutf(@"%s entity deleted", entnames[t]);
ents[e].type = NOTUSED;
addmsg(1, 10, SV_EDITENT, e, NOTUSED, 0, 0, 0, 0, 0, 0, 0);
if (t == LIGHT)
@ -308,7 +308,7 @@ int
findtype(char *what)
{
loopi(MAXENTTYPES) if (strcmp(what, entnames[i]) == 0) return i;
conoutf("unknown entity type \"%s\"", what);
conoutf(@"unknown entity type \"%s\"", what);
return NOTUSED;
}