]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Coverity fix.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Mar 2015 10:48:34 +0000 (10:48 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Mar 2015 10:48:34 +0000 (10:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12195 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c

index 77b0daebec454f1f6b29e0270433871fb8bab89f..64e21e68a92ed7b66dba2778bfc9da9227b6a7a1 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -1221,7 +1221,7 @@ qboolean CL_VM_TransformView(int entnum, matrix4x4_t *viewmatrix, mplane_t *clip
                if(PRVM_clientedictfunction(ed, camera_transform))
                {
                        ret = true;
-                       if(viewmatrix || clipplane || visorigin)
+                       if(viewmatrix && clipplane && visorigin)
                        {
                                Matrix4x4_ToVectors(viewmatrix, forward, left, up, origin);
                                AnglesFromVectors(ang, forward, up, false);