Clean up console output functions
FossilOrigin-Name: 003b06901f169b5d97cbbaa313ad31a2493d2a56b295cffda136500ecc5d4f05
This commit is contained in:
parent
ab582d3745
commit
cac7cebba0
16 changed files with 108 additions and 105 deletions
|
@ -306,10 +306,10 @@ delent()
|
|||
if (e < 0) {
|
||||
conoutf(@"no more entities");
|
||||
return;
|
||||
};
|
||||
}
|
||||
int t = ents[e].type;
|
||||
@autoreleasepool {
|
||||
conoutf(@"%s entity deleted", entnames[t].UTF8String);
|
||||
conoutf(@"%@ entity deleted", entnames[t]);
|
||||
}
|
||||
ents[e].type = NOTUSED;
|
||||
addmsg(1, 10, SV_EDITENT, e, NOTUSED, 0, 0, 0, 0, 0, 0, 0);
|
||||
|
@ -322,7 +322,7 @@ findtype(OFString *what)
|
|||
{
|
||||
@autoreleasepool {
|
||||
loopi(MAXENTTYPES) if ([what isEqual:entnames[i]]) return i;
|
||||
conoutf(@"unknown entity type \"%s\"", what.UTF8String);
|
||||
conoutf(@"unknown entity type \"%@\"", what);
|
||||
return NOTUSED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue