summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-02-21 23:11:08 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:02 +0000
commit93d9c093f4ff092675e5557bc56aedd72187ae27 (patch)
treec0b6c4012538967d7735fcb16498ef3adfd4ed3b /src/cgame
parentb0dbbfd725eddb6e3a585144f8a772e4ae61dc31 (diff)
* Show who received a private message and how to respond again
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_servercmds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index 949c3adc..2b02a4e3 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -972,8 +972,13 @@ static void CG_Say( int clientNum, saymode_t mode, const char *text )
ignore, prefix, name, cgs.clientinfo[ cg.clientNum ].name,
maybeColon, INDENT_MARKER, color, text );
if( !ignore[0] )
+ {
CG_CenterPrint( va( "%sPrivate message from: " S_COLOR_WHITE "%s",
color, name ), 200, GIANTCHAR_WIDTH * 4 );
+ if( clientNum < 0 || clientNum >= MAX_CLIENTS )
+ clientNum = cg.clientNum;
+ CG_Printf( ">> to reply, say: /m %d [your message] <<\n", clientNum );
+ }
break;
case SAY_RAW:
CG_Printf( "%s\n", text );