浏览代码

Update rectClipper.cpp

== true is redundant.
Magtheridon96 13 年之前
父节点
当前提交
2cb6333922
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/source/math/rectClipper.cpp

+ 1 - 1
engine/source/math/rectClipper.cpp

@@ -116,7 +116,7 @@ RectClipper::clipLine(const Point2I& in_rStart,
       x2  = x1 + (t * dx);
    }
 
-   if (flipped == true) 
+   if (flipped)
    {
       out_rEnd.x   = S32(x1 + 0.5f);
       out_rEnd.y   = S32(y1 + 0.5f);