]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
turn off session locking if running -readonly
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Sep 2012 10:02:57 +0000 (10:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Sep 2012 10:02:57 +0000 (10:02 +0000)
because locking obviously fails when readonly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11846 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index 7bc799dd8b37a30a4e4c79e89b301358aec05b9b..4b106a6904203ba0363901e58de5844b6709f56f 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1106,7 +1106,7 @@ void Host_LockSession(void)
        if(locksession_run)
                return;
        locksession_run = true;
-       if(locksession.integer != 0)
+       if(locksession.integer != 0 && !COM_CheckParm("-readonly"))
        {
                char vabuf[1024];
                char *p = va(vabuf, sizeof(vabuf), "%slock%s", *fs_userdir ? fs_userdir : fs_basedir, sessionid.string);