support for /me

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@456 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-17 18:02:19 +00:00
parent a76af65a24
commit 809bc88707
1 changed files with 10 additions and 3 deletions

View File

@ -2567,7 +2567,7 @@ void TP_Init (void)
static void CL_Say (qboolean team)
static void CL_Say (qboolean team, char *extra)
{
extern cvar_t cl_fakename;
char text[1024], sendtext[1024], *s;
@ -2606,6 +2606,8 @@ static void CL_Say (qboolean team)
if (sendtext[0] < 32)
SZ_Print (&cls.netchan.message, "\""); // add quotes so that old servers parse the message correctly
if (extra)
SZ_Print (&cls.netchan.message, extra);
SZ_Print (&cls.netchan.message, sendtext);
if (sendtext[0] < 32)
@ -2615,12 +2617,17 @@ static void CL_Say (qboolean team)
void CL_Say_f (void)
{
CL_Say (false);
CL_Say (false, NULL);
}
void CL_SayMe_f (void)
{
CL_Say (false, "/me ");
}
void CL_SayTeam_f (void)
{
CL_Say (true);
CL_Say (true, NULL);
}
#endif