summaryrefslogtreecommitdiffstats
path: root/gamestats/sauerbraten-patches/001-sauerbraten-chat-annotate-hack.patch
blob: 70b9fd8bd80b5af6485cde47308806b03143b95a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: sauerbraten/src/engine/console.cpp
===================================================================
--- sauerbraten.orig/src/engine/console.cpp	2011-10-12 23:16:22.521014549 +0200
+++ sauerbraten/src/engine/console.cpp	2011-10-12 23:16:34.968958595 +0200
@@ -1,6 +1,7 @@
 // console.cpp: the console buffer, its display, and command line control
 
 #include "engine.h"
+#include "../fpsgame/game.h"
 
 struct cline { char *line; int type, outtime; };
 vector<cline> conlines;
@@ -30,6 +31,10 @@ void conoutfv(int type, const char *fmt,
     vformatstring(buf, fmt, args, sizeof(buf));
     conline(type, buf);
     filtertext(buf, buf);
+    if (type & CON_TEAMCHAT)
+        fputs("teamchat-message: ", stdout);
+    else if (type & CON_CHAT)
+        fputs("chat-message: ", stdout);
     puts(buf);
 }
 
bues.ch cgit interface