]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 9219f4e1afc417c7feeedcb0736b38d60a434ff0..556384c0520f7421674811c2c03afc306c41a816 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");