From: havoc Date: Thu, 2 Oct 2008 09:48:23 +0000 (+0000) Subject: added width and height parameters to CSQC_UpdateView (a feature from X-Git-Tag: xonotic-v0.1.0preview~2069 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2657907359c7e966698816f1b20d3e3a12ec2f9c;p=xonotic%2Fdarkplaces.git added width and height parameters to CSQC_UpdateView (a feature from EXT_CSQC_1 in FTEQW) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8519 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/csprogs.c b/csprogs.c index 299e914f..49eaafc6 100644 --- 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