]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
restore some csqc variables in VM_R_ClearScene
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 Jun 2007 04:42:00 +0000 (04:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 Jun 2007 04:42:00 +0000 (04:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7418 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 4110baa5704bf12d8c88f23a7c77ddf16c028768..37deefa867cecafbecb7f176c67472810f743581 100644 (file)
@@ -618,6 +618,18 @@ static void VM_CL_R_ClearScene (void)
        // clear renderable entity and light lists
        r_refdef.numentities = 0;
        r_refdef.numlights = 0;
+       // FIXME: restore these to the values from VM_CL_UpdateView
+       r_view.x = 0;
+       r_view.y = 0;
+       r_view.z = 0;
+       r_view.width = vid.width;
+       r_view.height = vid.height;
+       r_view.depth = 1;
+       // FIXME: restore cl.csqc_origin
+       // FIXME: restore cl.csqc_angles
+       cl.csqc_vidvars.drawworld = true;
+       cl.csqc_vidvars.drawenginesbar = true;
+       cl.csqc_vidvars.drawcrosshair = true;
 }
 
 //#301 void(float mask) addentities (EXT_CSQC)