thou shalt not use strlen as a boolean value!

This commit is contained in:
Bill Currie 2001-09-26 20:57:40 +00:00
parent ac58ecb10b
commit 694619cd70

View file

@ -386,7 +386,7 @@ CL_Rcon_f (void)
if (cls.state >= ca_connected)
to = cls.netchan.remote_address;
else {
if (!strlen (rcon_address->string)) {
if (!rcon_address->string[0]) {
Con_Printf ("You must either be connected,\n"
"or set the 'rcon_address' cvar\n"
"to issue rcon commands\n");