From: divverent Date: Thu, 5 Mar 2015 10:48:34 +0000 (+0000) Subject: Coverity fix. X-Git-Tag: xonotic-v0.8.1~8^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1e6f9a0bcaf5c544feef88b85ff6fada5b6fcd7;p=xonotic%2Fdarkplaces.git Coverity fix. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12195 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/csprogs.c b/csprogs.c index 77b0daeb..64e21e68 100644 --- 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);