mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
Corrected if-statement and added explicit brackets
This commit is contained in:
parent
55406f5c5d
commit
88a9d8d68a
2 changed files with 4 additions and 3 deletions
|
@ -722,7 +722,7 @@ Host_WriteConfiguration ( void )
|
||||||
QFile *f;
|
QFile *f;
|
||||||
|
|
||||||
// Only write cvars if we are non-dedicated
|
// 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");
|
f = Qopen (va("%s/config.cfg",com_gamedir), "w");
|
||||||
if ( !f ) {
|
if ( !f ) {
|
||||||
Con_Printf ("Couldn't write config.cfg.\n");
|
Con_Printf ("Couldn't write config.cfg.\n");
|
||||||
|
|
|
@ -1459,13 +1459,14 @@ void Host_Kick_f (void)
|
||||||
|
|
||||||
if (i < svs.maxclients)
|
if (i < svs.maxclients)
|
||||||
{
|
{
|
||||||
if (cmd_source == src_command)
|
if (cmd_source == src_command) {
|
||||||
if (cls.state == ca_dedicated)
|
if (cls.state == ca_dedicated)
|
||||||
who = "Console";
|
who = "Console";
|
||||||
else
|
else
|
||||||
who = cl_name->string;
|
who = cl_name->string;
|
||||||
else
|
} else {
|
||||||
who = save->name;
|
who = save->name;
|
||||||
|
}
|
||||||
|
|
||||||
// can't kick yourself!
|
// can't kick yourself!
|
||||||
if (host_client == save)
|
if (host_client == save)
|
||||||
|
|
Loading…
Reference in a new issue