]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added width and height parameters to CSQC_UpdateView (a feature from
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 2 Oct 2008 09:48:23 +0000 (09:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 2 Oct 2008 09:48:23 +0000 (09:48 +0000)
EXT_CSQC_1 in FTEQW)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8519 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c

index 299e914f39f77301b9ef1d836471e689e4f5d280..49eaafc679f5fe01c4038575c7d9c4fc78adcc5f 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -272,6 +272,9 @@ qboolean CL_VM_UpdateView (void)
                // CSQC_UpdateView function does not call R_ClearScene as it should
                r_refdef.scene.numentities = 0;
                r_refdef.scene.numlights = 0;
+               // pass in width and height as parameters (EXT_CSQC_1)
+               PRVM_G_FLOAT(OFS_PARM0) = vid.width;
+               PRVM_G_FLOAT(OFS_PARM1) = vid.height;
                PRVM_ExecuteProgram(prog->funcoffsets.CSQC_UpdateView, "QC function CSQC_UpdateView is missing");
                //VectorCopy(oldangles, cl.viewangles);
                // Dresk : Reset Dmg Globals Here