[openjk] 01/19: add cl_drawRecording

Simon McVittie smcv at debian.org
Sat Aug 5 10:52:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository openjk.

commit 73b1c242adef36e15af3717b6e09ee14d9baca8b
Author: deathsythe47 <deathsythe47 at gmail.com>
Date:   Fri Jan 22 15:01:46 2016 -0600

    add cl_drawRecording
---
 codemp/client/cl_main.cpp | 4 ++++
 codemp/client/cl_scrn.cpp | 4 +++-
 codemp/client/client.h    | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/codemp/client/cl_main.cpp b/codemp/client/cl_main.cpp
index 74258ae..2553d9e 100644
--- a/codemp/client/cl_main.cpp
+++ b/codemp/client/cl_main.cpp
@@ -102,6 +102,8 @@ cvar_t	*cl_consoleKeys;
 
 cvar_t  *cl_lanForcePackets;
 
+cvar_t	*cl_drawRecording;
+
 vec3_t cl_windVec;
 
 
@@ -2756,6 +2758,8 @@ void CL_Init( void ) {
 
 	cl_lanForcePackets = Cvar_Get ("cl_lanForcePackets", "1", CVAR_ARCHIVE);
 
+	cl_drawRecording = Cvar_Get("cl_drawRecording", "1", CVAR_ARCHIVE);
+
 	// enable the ja_guid player identifier in userinfo by default in OpenJK
 	cl_enableGuid = Cvar_Get("cl_enableGuid", "1", CVAR_ARCHIVE);
 	cl_guidServerUniq = Cvar_Get ("cl_guidServerUniq", "1", CVAR_ARCHIVE);
diff --git a/codemp/client/cl_scrn.cpp b/codemp/client/cl_scrn.cpp
index 58d7ca1..d82d6c7 100644
--- a/codemp/client/cl_scrn.cpp
+++ b/codemp/client/cl_scrn.cpp
@@ -315,7 +315,9 @@ void SCR_DrawDemoRecording( void ) {
 	if ( clc.spDemoRecording ) {
 		return;
 	}
-
+	if (!cl_drawRecording->integer) {
+		return;
+	}
 	pos = FS_FTell( clc.demofile );
 	Com_sprintf( string, sizeof(string), "RECORDING %s: %ik", clc.demoName, pos / 1024 );
 
diff --git a/codemp/client/client.h b/codemp/client/client.h
index 58b5b2e..64ee1aa 100644
--- a/codemp/client/client.h
+++ b/codemp/client/client.h
@@ -412,6 +412,8 @@ extern	cvar_t	*cl_consoleKeys;
 
 extern  cvar_t  *cl_lanForcePackets;
 
+extern	cvar_t	*cl_drawRecording;
+
 //=================================================
 
 //

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git



More information about the Pkg-games-commits mailing list