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:
TimeServ 2007-08-22 16:52:13 +00:00
parent 8fcb33d00e
commit 1fbe5d1755
3 changed files with 8 additions and 13 deletions

View file

@ -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));

View file

@ -320,7 +320,6 @@ cvar_t gl_specular = SCVAR ("gl_specular", "0");
#endif
// The callbacks are not in D3D yet
#ifndef D3DQUAKE
cvar_t gl_texture_anisotropic_filtering = SCVARFC("gl_texture_anisotropic_filtering", "0",
CVAR_ARCHIVE | CVAR_RENDERERCALLBACK,
GL_Texture_Anisotropic_Filtering_Callback);
@ -330,7 +329,6 @@ cvar_t gl_texturemode = SCVARFC("gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST
cvar_t gl_texturemode2d = SCVARFC("gl_texturemode2d", "GL_LINEAR",
CVAR_ARCHIVE | CVAR_RENDERERCALLBACK,
GL_Texturemode2d_Callback);
#endif
cvar_t gl_triplebuffer = SCVARF ("gl_triplebuffer", "1",
CVAR_ARCHIVE);

View file

@ -189,7 +189,7 @@ static char *defaultlanguagetext =
"TLC_ILLEGALSERVERADDRESS \"Illegal server address\\n\"\n"
"TLC_CONNECTINGTO \"Connecting to %s...\\n\"\n"
"TLC_SYNTAX_CONNECT \"usage: connect <server>\\n\"\n"
"TLC_NORCONPASSWORD \"You must set 'rcon_password' before\\nissuing an rcon command.\\n\"\n"
"TLC_NORCONPASSWORD \"'rcon_password' is not set.\"\n"
"TLC_NORCONDEST \"You must either be connected,\\nor set the 'rcon_address' cvar\\nto issue rcon commands\\n\"\n"
"TLC_SYNTAX_USER \"Usage: user <username / userid>\\n\"\n"
"TLC_USER_NOUSER \"User not in server.\\n\"\n"