More string cleanups
FossilOrigin-Name: a401a49dd9b3759c48509aa50fa13dab309bf09462a137f4ecbf3c98dce9d9e4
This commit is contained in:
parent
0e59beaf43
commit
db3bb84a6a
12 changed files with 52 additions and 44 deletions
|
@ -192,14 +192,14 @@ addmsg(int rel, int num, int type, ...)
|
|||
if (demoplayback)
|
||||
return;
|
||||
if (num != msgsizelookup(type)) {
|
||||
sprintf_sd(s)("inconsistant msg size for %d (%d != %d)", type,
|
||||
num, msgsizelookup(type));
|
||||
fatal(s);
|
||||
};
|
||||
fatal([OFString
|
||||
stringWithFormat:@"inconsistant msg size for %d (%d != %d)",
|
||||
type, num, msgsizelookup(type)]);
|
||||
}
|
||||
if (messages.length() == 100) {
|
||||
conoutf(@"command flood protection (type %d)", type);
|
||||
return;
|
||||
};
|
||||
}
|
||||
ivector &msg = messages.add();
|
||||
msg.add(num);
|
||||
msg.add(rel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue