Cube  Diff

Differences From Artifact [0b1a4d40d0]:

To Artifact [6783fe61cf]:


193
194
195
196
197
198
199
200

201
202
203


204
205
206
207
208
209
210
211
193
194
195
196
197
198
199

200



201
202

203
204
205
206
207
208
209







-
+
-
-
-
+
+
-







static OFMutableArray<OFData *> *messages;

void
addmsg(int rel, int num, int type, ...)
{
	if (demoplayback)
		return;
	if (num != msgsizelookup(type)) {
	if (num != msgsizelookup(type))
		fatal([OFString
		    stringWithFormat:@"inconsistant msg size for %d (%d != %d)",
		    type, num, msgsizelookup(type)]);
		fatal(@"inconsistant msg size for %d (%d != %d)", type, num,
		    msgsizelookup(type));
	}
	if (messages.count == 100) {
		conoutf(@"command flood protection (type %d)", type);
		return;
	}

	OFMutableData *msg = [OFMutableData dataWithItemSize:sizeof(int)
	                                            capacity:num + 2];