X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Fbrush_primit.cpp;h=066adfcd385e58eb70f7a5ab4034d5a8c1d7b404;hp=4ea73c0356a7572e168bc12dec3381d1044f4fbe;hb=f293853a8bce6ee74498c412fc25deed9e7801c9;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc diff --git a/radiant/brush_primit.cpp b/radiant/brush_primit.cpp index 4ea73c03..066adfcd 100644 --- a/radiant/brush_primit.cpp +++ b/radiant/brush_primit.cpp @@ -1235,7 +1235,7 @@ inline Matrix4 matrix4_reflection_for_plane45( const Plane3& plane, const Vector Vector3 first = from; Vector3 second = to; - if ( vector3_dot( from, plane.normal() ) > 0 == vector3_dot( to, plane.normal() ) > 0 ) { + if ( (vector3_dot( from, plane.normal() ) > 0) == (vector3_dot( to, plane.normal() ) > 0) ) { first = vector3_negated( first ); second = vector3_negated( second ); } @@ -1253,8 +1253,6 @@ inline Matrix4 matrix4_reflection_for_plane45( const Plane3& plane, const Vector Matrix4 swap = matrix4_swap_axes( first, second ); - Matrix4 tmp = matrix4_reflection_for_plane( plane ); - swap.tx() = -static_cast( -2 * plane.a * plane.d ); swap.ty() = -static_cast( -2 * plane.b * plane.d ); swap.tz() = -static_cast( -2 * plane.c * plane.d );