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:
parent
a76af65a24
commit
809bc88707
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
extern cvar_t cl_fakename;
|
||||||
char text[1024], sendtext[1024], *s;
|
char text[1024], sendtext[1024], *s;
|
||||||
|
@ -2606,6 +2606,8 @@ static void CL_Say (qboolean team)
|
||||||
if (sendtext[0] < 32)
|
if (sendtext[0] < 32)
|
||||||
SZ_Print (&cls.netchan.message, "\""); // add quotes so that old servers parse the message correctly
|
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);
|
SZ_Print (&cls.netchan.message, sendtext);
|
||||||
|
|
||||||
if (sendtext[0] < 32)
|
if (sendtext[0] < 32)
|
||||||
|
@ -2615,12 +2617,17 @@ static void CL_Say (qboolean team)
|
||||||
|
|
||||||
void CL_Say_f (void)
|
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)
|
void CL_SayTeam_f (void)
|
||||||
{
|
{
|
||||||
CL_Say (true);
|
CL_Say (true, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue