From: divverent Date: Wed, 19 Sep 2012 10:02:57 +0000 (+0000) Subject: turn off session locking if running -readonly X-Git-Tag: xonotic-v0.7.0~106 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9df89d21858882c00ef038c512d2c50a0d83aabd;p=xonotic%2Fdarkplaces.git turn off session locking if running -readonly 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 --- diff --git a/host.c b/host.c index 7bc799dd..4b106a69 100644 --- 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);