~a1batross/xash3d-fwgs

engine: client: set max FPS when recording with fps_max 0 v1 APPLIED

Alibek Omarov: 1
 engine: client: set max FPS when recording with fps_max 0

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~a1batross/xash3d-fwgs/patches/47804/mbox | git am -3
Learn more about email & git

[PATCH] engine: client: set max FPS when recording with fps_max 0 Export this patch

Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
---
 engine/client/cl_demo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/client/cl_demo.c b/engine/client/cl_demo.c
index e947c76d..d93badaa 100644
--- a/engine/client/cl_demo.c
+++ b/engine/client/cl_demo.c
@@ -372,7 +372,7 @@ void CL_WriteDemoHeader( const char *name )
	demo.header.id = IDEMOHEADER;
	demo.header.dem_protocol = DEMO_PROTOCOL;
	demo.header.net_protocol = cls.legacymode ? PROTOCOL_LEGACY_VERSION : PROTOCOL_VERSION;
	demo.header.host_fps = bound( MIN_FPS, host_maxfps.value, MAX_FPS );
	demo.header.host_fps = host_maxfps.value ? bound( MIN_FPS, host_maxfps.value, MAX_FPS ) : MAX_FPS;
	Q_strncpy( demo.header.mapname, clgame.mapname, sizeof( demo.header.mapname ));
	Q_strncpy( demo.header.comment, clgame.maptitle, sizeof( demo.header.comment ));
	Q_strncpy( demo.header.gamedir, FS_Gamedir(), sizeof( demo.header.gamedir ));
-- 
2.40.1