fixed up rcon a bit more, fixed merge build
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2606 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8fcb33d00e
commit
1fbe5d1755
3 changed files with 8 additions and 13 deletions
|
@ -858,31 +858,30 @@ CL_Rcon_f
|
|||
void CL_Rcon_f (void)
|
||||
{
|
||||
char message[1024];
|
||||
char password[1024];
|
||||
char *password;
|
||||
int i;
|
||||
netadr_t to;
|
||||
|
||||
if (!*rcon_password.string) //FIXME: this is strange...
|
||||
i = 1;
|
||||
password = rcon_password.string;
|
||||
if (!*password) //FIXME: this is strange...
|
||||
{
|
||||
//Con_TPrintf (TLC_NORCONPASSWORD);
|
||||
//return;
|
||||
if (Cmd_Argc() < 3)
|
||||
{
|
||||
Con_TPrintf (TLC_NORCONPASSWORD);
|
||||
Con_Printf("usage: rcon (password) <command>\n");
|
||||
return;
|
||||
}
|
||||
Q_strncpyz(password, Cmd_Argv(1), sizeof(password));
|
||||
password = Cmd_Argv(1);
|
||||
i = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Cmd_Argc() < 2)
|
||||
{
|
||||
Con_Printf("usage: rcon (password) <command>\n");
|
||||
Con_Printf("usage: rcon <command>\n");
|
||||
return;
|
||||
}
|
||||
Q_strncpyz(password, rcon_password.string, sizeof(password));
|
||||
i = 1;
|
||||
}
|
||||
|
||||
message[0] = 255;
|
||||
|
@ -892,8 +891,6 @@ void CL_Rcon_f (void)
|
|||
message[4] = 0;
|
||||
|
||||
Q_strncatz (message, "rcon ", sizeof(message));
|
||||
|
||||
//Q_strncatz (message, rcon_password.string, sizeof(message));
|
||||
Q_strncatz (message, password, sizeof(message));
|
||||
Q_strncatz (message, " ", sizeof(message));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue