]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
VM_sprintf: support color codes in %s
[xonotic/darkplaces.git] / host_cmd.c
index f2d6af53dc5b54caa621c608c9c0960337fc01f0..350cef0ddf9336d26a27cdd046683009d981f9bf 100644 (file)
@@ -1698,6 +1698,7 @@ Host_Pause_f
 */
 static void Host_Pause_f (void)
 {
+       void (*print) (const char *fmt, ...);
        if (cmd_source == src_command)
        {
                // if running a client, try to send over network so the pause is handled by the server
@@ -1715,7 +1716,7 @@ static void Host_Pause_f (void)
        {
                if (cmd_source == src_client)
                {
-                       if(cls.state == ca_dedicated || host_client == &svs.clients[0]) // non-admin
+                       if(cls.state == ca_dedicated || host_client != &svs.clients[0]) // non-admin
                        {
                                print("Pause not allowed.\n");
                                return;