mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
thou shalt not use strlen as a boolean value!
This commit is contained in:
parent
ac58ecb10b
commit
694619cd70
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ CL_Rcon_f (void)
|
||||||
if (cls.state >= ca_connected)
|
if (cls.state >= ca_connected)
|
||||||
to = cls.netchan.remote_address;
|
to = cls.netchan.remote_address;
|
||||||
else {
|
else {
|
||||||
if (!strlen (rcon_address->string)) {
|
if (!rcon_address->string[0]) {
|
||||||
Con_Printf ("You must either be connected,\n"
|
Con_Printf ("You must either be connected,\n"
|
||||||
"or set the 'rcon_address' cvar\n"
|
"or set the 'rcon_address' cvar\n"
|
||||||
"to issue rcon commands\n");
|
"to issue rcon commands\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue