From: divverent Date: Sun, 26 Sep 2010 17:48:31 +0000 (+0000) Subject: cameras: when new eye pos == old eye pos, do not create a network eye X-Git-Tag: xonotic-v0.1.0preview~153 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=734fb376f33efef19c95153784d32ba7168c3862;p=xonotic%2Fdarkplaces.git cameras: when new eye pos == old eye pos, do not create a network eye git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10501 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=44bfaab727457c0b4d084da92bedea1969cfb1db --- diff --git a/sv_main.c b/sv_main.c index 34b05933..228a1de9 100644 --- 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; + } } } }