]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
ZQ_PAUSE extension patch from GreEn`mArine
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index f00b8e6d0623a3caa18779d6afe507076b8fa1f6..dbad918f04bd65a6e7dc45bf07853f3c55cd13a9 100644 (file)
--- a/host.c
+++ b/host.c
@@ -801,6 +801,11 @@ void Host_Main(void)
 
                        // send all messages to the clients
                        SV_SendClientMessages();
+                       
+                       if (sv.paused == 1 && realtime > sv.pausedstart && sv.pausedstart > 0) {
+                               prog->globals.generic[OFS_PARM0] = realtime - sv.pausedstart;
+                               PRVM_ExecuteProgram(prog->funcoffsets.SV_PausedTic, "QC function SV_PausedTic is missing");
+                       }
 
                        // end the server VM frame
                        SV_VM_End();