All pastes #472405 Raw Edit

Miscellany

public c v1 · immutable
·published 2007-05-05 15:30 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,26 @@ 	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) {+			Com_Printf("HOTFIX: %i message(s)\n", i);+			sb->readcount = hotfix;+			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));