]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
set pmove_org and pmove_vel again in csqc because it's useless without
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Oct 2007 00:08:46 +0000 (00:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Oct 2007 00:08:46 +0000 (00:08 +0000)
them

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

csprogs.c

index 90aeb940708774b87902391b7118ac60b68ecaed..6a0bf4c841a0ce2c9200d762e2636ba6b850ef05 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -82,6 +82,13 @@ static void CSQC_SetGlobals (void)
                VectorSet(prog->globals.client->input_movevalues, cl.movecmd[0].forwardmove, cl.movecmd[0].sidemove, cl.movecmd[0].upmove);
                //VectorCopy(cl.movement_origin, cl.csqc_origin);
                Matrix4x4_OriginFromMatrix(&cl.entities[cl.viewentity].render.matrix, cl.csqc_origin);
+
+               // LordHavoc: Spike says not to do this, but without pmove_org the
+               // CSQC is useless as it can't alter the view origin without
+               // completely replacing it
+               VectorCopy(cl.csqc_origin, prog->globals.client->pmove_org);
+               VectorCopy(cl.velocity, prog->globals.client->pmove_vel);
+
                if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_angles)))
                        VectorCopy(cl.viewangles, val->vector);
                prog->globals.client->maxclients = cl.maxclients;