# HG changeset patch # User Ritor1 # Date 1358612784 -21600 # Node ID b46b1404725bf73ae8b321590f8764ec3680f10b # Parent 7fb7febacb461567af0344fff95df678793ab8da 19.01.13 diff -r 7fb7febacb46 -r b46b1404725b Vis.cpp --- 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;