make gamedir command work on dedicated servers
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2007 23:54:14 +0000 (23:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2007 23:54:14 +0000 (23:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6952 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index 9219f4e..556384c 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1263,7 +1263,7 @@ void FS_GameDir_f (void)
        if (cls.demoplayback)
                CL_Disconnect();
 
-       if (cls.state != ca_disconnected || sv.active)
+       if (cls.state == ca_connected || sv.active)
        {
                // actually, changing during game would work fine, but would be stupid
                Con_Printf("Can not change gamedir while client is connected or server is running!\n");