From: havoc Date: Thu, 14 Jun 2007 04:42:00 +0000 (+0000) Subject: restore some csqc variables in VM_R_ClearScene X-Git-Tag: xonotic-v0.1.0preview~3043 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=3b4b3d028c3aeadb273296947cec292d4eff08ed restore some csqc variables in VM_R_ClearScene git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7418 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 4110baa5..37deefa8 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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)