[mw-devel] MW3 r959 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Tue May 1 11:44:37 BST 2007


Author: psycodom
Date: 2007-05-01 11:44:36 +0100 (Tue, 01 May 2007)
New Revision: 959

Modified:
   trunk/src/incoming.c
Log:
fixes mrod/zod reasons to use display_message on the victims screen.  Fixes #29.



Modified: trunk/src/incoming.c
===================================================================
--- trunk/src/incoming.c	2007-05-01 09:13:26 UTC (rev 958)
+++ trunk/src/incoming.c	2007-05-01 10:44:36 UTC (rev 959)
@@ -980,7 +980,8 @@
 	broadcast_onoffcode(0, 1, from, msg);
 
 	/* put standard message to screen */
-	printf(_("\nBoing, Zebedee arrived.  \"%s\", said Zebedee\n"), (msg!=NULL)?msg:_("Time for bed"));
+	snprintf(text, MAXTEXTLENGTH-1, _("\nBoing, Zebedee arrived.  \"%s\033--\", said Zebedee\n"), (msg!=NULL)?msg:_("Time for bed"));
+	display_message(text, 1, 1);
 	printf(_("%s just sent the Zebedee of Death to you.\n"),from);
 	fflush(stdout);
 
@@ -1005,6 +1006,7 @@
 
 static void mrod(char *from, char *msg)
 {
+	char mrod_message[MAXTEXTLENGTH];
 	/* make sure we have left talker */
 	/*user->chatmode=cm_flags(user->chatmode, CM_ONCHAT, CM_MODE_CLEAR);*/
 	update_user(user,userposn);
@@ -1017,7 +1019,11 @@
 	printf(_("Boing, Zebedee's left you standing all alone\n"));
 	printf(_("WWWHHHEEEEEEEKKKKEEEERRRRRUUUUUNNNNNCCCCCHHHHHH\7\7\7\7\7\n"));
 	printf(_("%s has just dropped the Magic Roundabout of Death on you.\n"),from);
-	if (msg!=NULL) printf(_("\"%s\" says Zebedee\n"), msg);
+	if (msg!=NULL) 
+	{
+		snprintf(mrod_message, MAXTEXTLENGTH-1, _("\"%s\033--\" says Zebedee\n"), msg);
+		display_message(mrod_message, 1, 1);
+	}
 	fflush(stdout);
 
 	broadcast(1|0x100, "\03314You hear a boing in the distance, closely followed by the distant wail of a hurdy-gurdy, which is suddenly terminated by a blood curdling scream, a C major chord explosion and a few curious springing noises...");





More information about the mw-devel mailing list