]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cameras: when new eye pos == old eye pos, do not create a network eye
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Sep 2010 17:48:31 +0000 (17:48 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 28 Sep 2010 12:22:57 +0000 (14:22 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10501 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=44bfaab727457c0b4d084da92bedea1969cfb1db

sv_main.c

index 34b0593301d3e6096d16f436925674c81aa30aa8..228a1de945e5ff273be2bf61205bfba79c60fe44 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1636,11 +1636,13 @@ void SV_AddCameraEyes(void)
                                VectorClear(PRVM_G_VECTOR(OFS_PARM1));
                                PRVM_ExecuteProgram(val->function, "QC function e.camera_transform is missing");
                                if(!VectorCompare(valendpos->vector, sv.writeentitiestoclient_eyes[0]))
+                               {
                                        VectorCopy(valendpos->vector, camera_origins[n_cameras]);
-                               cameras[n_cameras] = e;
-                               ++n_cameras;
-                               if(n_cameras >= MAX_LEVELNETWORKEYES)
-                                       break;
+                                       cameras[n_cameras] = e;
+                                       ++n_cameras;
+                                       if(n_cameras >= MAX_LEVELNETWORKEYES)
+                                               break;
+                               }
                        }
                }
        }