From 3b4b3d028c3aeadb273296947cec292d4eff08ed Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 14 Jun 2007 04:42:00 +0000 Subject: [PATCH] restore some csqc variables in VM_R_ClearScene git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7418 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.39.2