mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Support for /me in multiplayer text chat
git-svn-id: https://svn.eduke32.com/eduke32@187 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8f73605b8d
commit
62b15f204f
2 changed files with 21 additions and 3 deletions
|
@ -2367,8 +2367,26 @@ void typemode(void)
|
||||||
if(ud.multimode < 3)
|
if(ud.multimode < 3)
|
||||||
sendmessagecommand = 2;
|
sendmessagecommand = 2;
|
||||||
|
|
||||||
strcat(recbuf,ud.user_name[myconnectindex]);
|
if(typebuf[0] == '/' && Btoupper(typebuf[1]) == 'M' && Btoupper(typebuf[2]) == 'E')
|
||||||
strcat(recbuf,":^0 ");
|
{
|
||||||
|
strcat(recbuf,"* ");
|
||||||
|
i = 3, j = Bstrlen(typebuf);
|
||||||
|
Bstrcpy(tempbuf,typebuf);
|
||||||
|
while(i < j)
|
||||||
|
{
|
||||||
|
typebuf[i-3] = tempbuf[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
typebuf[i-3] = '\0';
|
||||||
|
strcat(recbuf,ud.user_name[myconnectindex]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcat(recbuf,ud.user_name[myconnectindex]);
|
||||||
|
strcat(recbuf,": ");
|
||||||
|
}
|
||||||
|
|
||||||
|
strcat(recbuf,"^0");
|
||||||
strcat(recbuf,typebuf);
|
strcat(recbuf,typebuf);
|
||||||
j = strlen(recbuf);
|
j = strlen(recbuf);
|
||||||
recbuf[j] = 0;
|
recbuf[j] = 0;
|
||||||
|
|
|
@ -39,7 +39,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, in
|
||||||
i++;
|
i++;
|
||||||
CmdLine[i] = '\0';
|
CmdLine[i] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(szFileName[0] != '\0' && CmdLine[0] != '\0') sprintf(sCmdLine,"eduke32.exe %s -rmnet %s",CmdLine,szFileName);
|
if(szFileName[0] != '\0' && CmdLine[0] != '\0') sprintf(sCmdLine,"eduke32.exe %s -rmnet %s",CmdLine,szFileName);
|
||||||
else if(CmdLine[0] != '\0') sprintf(sCmdLine,"eduke32.exe %s",CmdLine);
|
else if(CmdLine[0] != '\0') sprintf(sCmdLine,"eduke32.exe %s",CmdLine);
|
||||||
else sprintf(sCmdLine,"eduke32.exe");
|
else sprintf(sCmdLine,"eduke32.exe");
|
||||||
|
|
Loading…
Reference in a new issue