changeset 31:b46b1404725b

19.01.13
author Ritor1
date Sat, 19 Jan 2013 22:26:24 +0600
parents 7fb7febacb46
children 4c90ae1041aa
files Vis.cpp
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Vis.cpp	Fri Jan 18 20:17:38 2013 +0600
+++ b/Vis.cpp	Sat Jan 19 22:26:24 2013 +0600
@@ -301,7 +301,10 @@
 
   result = a1;
   if ( a1->uParentBillboardID == -1 )
-    goto LABEL_14;
+  {
+    result = 0;
+    return (bool)result;
+  }
   v5 = a1->pQuards[0].pos.x;
   a1a = a1->pQuards[3].pos.x;
   v6 = result->pQuards[0].pos.y;
@@ -326,14 +329,13 @@
   v10 = v9 < v5;
   v11 = 0;
   v12 = v9 == v5;
-  BYTE1(result) = HIBYTE(v8);//crash
+  //BYTE1(result) = HIBYTE(v8);//crash
   if ( v9 >= v5
-    && (v14 = x - 1.0, /*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, BYTE1(result) = HIBYTE(v13), v15 | v17)
-    && (v19 = y + 1.0, /*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, BYTE1(result) = HIBYTE(v18), v19 >= v29)
-    && (v24 = y - 1.0, /*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, BYTE1(result) = HIBYTE(v23), v25 | v27) )
+    && (v14 = x - 1.0, /*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, /*BYTE1(result) = HIBYTE(v13),*/ v15 | v17)
+    && (v19 = y + 1.0, /*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, /*BYTE1(result) = HIBYTE(v18),*/ v19 >= v29)
+    && (v24 = y - 1.0, /*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, /*BYTE1(result) = HIBYTE(v23),*/ v25 | v27) )
     LOBYTE(result) = 1;
   else
-LABEL_14:
     LOBYTE(result) = 0;
   return (bool)result;
 }
@@ -1820,7 +1822,7 @@
         v9 = v8 < fDepth,
         v10 = 0,
         v11 = v8 == fDepth,
-        BYTE1(result) = HIBYTE(v7),
+        /*BYTE1(result) = HIBYTE(v7),*/
         v9 | v11) )
   {
     LOWORD(v5) = 0;