changeset 2385:b842e1b77c8c

sub_407A1C - fixed wrong refactoring of condition
author zipi
date Sun, 22 Jun 2014 15:14:10 +0100
parents f784ffc9a758
children 5f395dd759fb
files Indoor.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Indoor.cpp	Sun Jun 22 14:57:47 2014 +0100
+++ b/Indoor.cpp	Sun Jun 22 15:14:10 2014 +0100
@@ -4604,13 +4604,13 @@
           ya = fixpoint_mul(v126, odm_face->pFacePlane.vNormal.x);
           ve = fixpoint_mul(v122, odm_face->pFacePlane.vNormal.y);
           v_4 = fixpoint_mul(v35, odm_face->pFacePlane.vNormal.z);
-          v20 = ya + ve + v_4;
+          v20 = ya + ve + v_4 == 0;
           v40 = ya + ve + v_4;
           va = ya + ve + v_4;
           if ( v150 > odm_face->pBoundingBox.x2 || v146 < odm_face->pBoundingBox.x1
             || v142 > odm_face->pBoundingBox.y2 || v138 < odm_face->pBoundingBox.y1
             || v134 > odm_face->pBoundingBox.z2 || v130 < odm_face->pBoundingBox.z1
-            || !v20 )
+            || v20 )
             continue;
           v42 = -(odm_face->pFacePlane.dist + sX * odm_face->pFacePlane.vNormal.x
                                             + sY * odm_face->pFacePlane.vNormal.y