]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_world.qc
THERE CAN ONLY BE ONE!
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_world.qc
index 8ff2ac8a572a001390799dcffed8ae6ee32adb72..5b91f905c8a69d55f7a8273fe40591d9c8ac72da 100644 (file)
@@ -597,16 +597,7 @@ void spawnfunc_worldspawn (void)
                head = nextent(head);
        }
 
-       if(cvar_defstring("is_dedicated"))
-       {
-               server_is_dedicated = TRUE;
-               server_is_local = FALSE;
-       }
-       else
-       {
-               server_is_dedicated = FALSE;
-               server_is_local = TRUE;
-       }
+       server_is_dedicated = (cvar_defstring("is_dedicated") ? TRUE : FALSE);
 
        // needs to be done so early because of the constants they create
        CALL_ACCUMULATED_FUNCTION(RegisterWeapons);