]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
ground R_CalcRefdef when the player entity is shared
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 0db5c0120a299da1b32256189f2075144b6b419e..d42a728fee9676b525c7e67b91e8a1bc7c5663c7 100644 (file)
--- a/view.c
+++ b/view.c
@@ -827,7 +827,7 @@ void V_CalcRefdef (void)
 {
        entity_t *ent;
 
-       if (cls.state == ca_connected && cls.signon == SIGNONS)
+       if (cls.state == ca_connected && cls.signon == SIGNONS && !cl.csqc_server2csqcentitynumber[cl.playerentity])
        {
                // ent is the view entity (visible when out of body)
                ent = &cl.entities[cl.viewentity];
@@ -839,6 +839,8 @@ void V_CalcRefdef (void)
                viewmodelmatrix_nobob = identitymatrix;
                viewmodelmatrix_withbob = identitymatrix;
                r_refdef.view.matrix = identitymatrix;
+               VectorClear(cl.csqc_vieworiginfromengine);
+               VectorCopy(cl.viewangles, cl.csqc_viewanglesfromengine);
        }
 }