]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a typo in V_CalcRefdef regarding csqc view entities
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 31 Dec 2011 12:19:58 +0000 (12:19 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 31 Dec 2011 12:18:36 +0000 (13:18 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11627 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d02387f616897982580ed5599e6f6758482ebe5e

view.c

diff --git a/view.c b/view.c
index 5cc5875534cbf4285666d25d493c1f19096ab8b3..6e5de1589154f3cb7678cd24c701464e9a2cb2f3 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 && !cl.csqc_server2csqcentitynumber[cl.playerentity])
+       if (cls.state == ca_connected && cls.signon == SIGNONS && !cl.csqc_server2csqcentitynumber[cl.viewentity])
        {
                // ent is the view entity (visible when out of body)
                ent = &cl.entities[cl.viewentity];