瀏覽代碼

Sonar: Removed redundant parenthesis

Jorrit Rouwe 4 年之前
父節點
當前提交
12c5505385
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Jolt/Geometry/ClipPoly.h

+ 2 - 2
Jolt/Geometry/ClipPoly.h

@@ -173,9 +173,9 @@ void ClipPolyVsAABox(const VERTEX_ARRAY &inPolygonToClip, const AABox &inAABox,
 			}
 
 			// Get source and target polygon
-			const VERTEX_ARRAY &src_polygon = tmp_vertices_idx == 0? inPolygonToClip : tmp_vertices[(tmp_vertices_idx & 1)];
+			const VERTEX_ARRAY &src_polygon = tmp_vertices_idx == 0? inPolygonToClip : tmp_vertices[tmp_vertices_idx & 1];
 			tmp_vertices_idx++;
-			VERTEX_ARRAY &tgt_polygon = tmp_vertices_idx == 6? outClippedPolygon : tmp_vertices[(tmp_vertices_idx & 1)];
+			VERTEX_ARRAY &tgt_polygon = tmp_vertices_idx == 6? outClippedPolygon : tmp_vertices[tmp_vertices_idx & 1];
 			tgt_polygon.clear();
 
 			// Clip against the edge