From 88a9d8d68aafa28ff7c813d9a8a0235a2e20d454 Mon Sep 17 00:00:00 2001 From: Maddes Buecher Date: Thu, 17 Aug 2000 19:38:40 +0000 Subject: [PATCH] Corrected if-statement and added explicit brackets --- common/host.c | 2 +- uquake/host_cmd.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/host.c b/common/host.c index 050b2a8..8a9022a 100644 --- a/common/host.c +++ b/common/host.c @@ -722,7 +722,7 @@ Host_WriteConfiguration ( void ) QFile *f; // Only write cvars if we are non-dedicated - if (host_initialized & !isDedicated) { + if (host_initialized && !isDedicated) { f = Qopen (va("%s/config.cfg",com_gamedir), "w"); if ( !f ) { Con_Printf ("Couldn't write config.cfg.\n"); diff --git a/uquake/host_cmd.c b/uquake/host_cmd.c index aa82a36..608062c 100644 --- a/uquake/host_cmd.c +++ b/uquake/host_cmd.c @@ -1459,13 +1459,14 @@ void Host_Kick_f (void) if (i < svs.maxclients) { - if (cmd_source == src_command) + if (cmd_source == src_command) { if (cls.state == ca_dedicated) who = "Console"; else who = cl_name->string; - else + } else { who = save->name; + } // can't kick yourself! if (host_client == save)