From 8b5ba0011d176e01d6adc37ad44f8d19f7621b47 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 19 Sep 2012 10:02:57 +0000 Subject: [PATCH] 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 --- host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2