]> de.git.xonotic.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)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 19 Sep 2012 10:10:42 +0000 (12:10 +0200)
because locking obviously fails when readonly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11846 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8b5ba0011d176e01d6adc37ad44f8d19f7621b47

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);