Cube  Diff

Differences From Artifact [f8f6147037]:

To Artifact [74876b82b8]:


188
189
190
191
192
193
194

195
196
197
198

199
200
201
202

203
204
205
206
207
208
209

void
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);
	};

	if (messages.length() == 100) {
		conoutf(@"command flood protection (type %d)", type);
		return;
	};

	ivector &msg = messages.add();
	msg.add(num);
	msg.add(rel);
	msg.add(type);
	va_list marker;
	va_start(marker, type);
	loopi(num - 1) msg.add(va_arg(marker, int));







>
|
|
<
<
>



<
>







188
189
190
191
192
193
194
195
196
197


198
199
200
201

202
203
204
205
206
207
208
209

void
addmsg(int rel, int num, int type, ...)
{
	if (demoplayback)
		return;
	if (num != msgsizelookup(type)) {
		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);
	msg.add(type);
	va_list marker;
	va_start(marker, type);
	loopi(num - 1) msg.add(va_arg(marker, int));