All pastes #472398 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-05 15:25 UTC
rendered paste body
Index: src/client/cl_menu.c
===================================================================
--- src/client/cl_menu.c	(Revision 8199)
+++ src/client/cl_menu.c	(Arbeitskopie)
@@ -4481,12 +4481,24 @@
 	int i, mtype, idx;
 	char title[MAX_VAR], text[MAX_MESSAGE_TEXT];
 	message_t *mess;
+	/* ==== HOTFIX ==== */
+	int hotfix;
+	/* ==== HOTFIX ==== */

 	MN_ShutdownMessageSystem();

 	/* how many message items */
 	i = MSG_ReadLong(sb);
 	for (; i--;) {
+		/* ==== HOTFIX ==== */
+		hotfix = sb.readcount;
+		/* dont' load any following message */
+		if (MSG_ReadByte(sb) == 0x9)
+			return qtrue;
+		else
+			sb.readcount = hotfix;
+		/* ==== HOTFIX ==== */
+
 		/* can contain high bits due to utf8 */
 		Q_strncpyz(title, MSG_ReadStringRaw(sb), sizeof(title));
 		Q_strncpyz(text, MSG_ReadStringRaw(sb), sizeof(text));