shithub: qk1

Download patch

ref: 34aeb93dd4d0f5357e060e4b4754a193229d5ec5
parent: d5136c313dff0b98316e313000161dc18f50025e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Aug 5 22:42:26 EDT 2025

step through sound frames even when fps is bounded

--- a/host.c
+++ b/host.c
@@ -454,10 +454,17 @@
 		return;			// something bad happened, or the server disconnected
 
 	// keep the random time dependent
-	rand ();
+	rand();
 
-	if(boundfps(time) < 0)
-		return;
+	// update audio
+	if (cls.signon == SIGNONS)
+	{
+		stepsnd(&r_refdef.view);
+		CL_DecayLights();
+	}else{
+		static const view_t originview = { 0 };
+		stepsnd(&originview);
+	}
 
 	// get new key events
 	Sys_SendKeyEvents ();
@@ -472,6 +479,11 @@
 	if (sv.active)
 		CL_SendCmd ();
 
+	stepcd();
+
+	if(boundfps(time) < 0)
+		return;
+
 	//-------------------
 	//
 	// server operations
@@ -511,18 +523,6 @@
 
 	if (host_speeds.value)
 		time2 = dtime ();
-
-	// update audio
-	if (cls.signon == SIGNONS)
-	{
-		stepsnd(&r_refdef.view);
-		CL_DecayLights ();
-	}else{
-		static const view_t originview = { 0 };
-		stepsnd(&originview);
-	}
-
-	stepcd();
 
 	if (host_speeds.value)
 	{
--