]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Sep 2010 17:48:31 +0000 (17:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10501 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index bb2722318dd929e8fbb822307c8e92673b41307f..db56fde35da9ef2243d3d2db0ee6948f6770c937 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1639,11 +1639,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;
+                               }
                        }
                }
        }