comparison Vis.cpp @ 31:b46b1404725b

19.01.13
author Ritor1
date Sat, 19 Jan 2013 22:26:24 +0600
parents fe0d9a98213f
children bf67f3164041
comparison
equal deleted inserted replaced
27:7fb7febacb46 31:b46b1404725b
299 float v29; // [sp+8h] [bp-4h]@2 299 float v29; // [sp+8h] [bp-4h]@2
300 float a1a; // [sp+14h] [bp+8h]@2 300 float a1a; // [sp+14h] [bp+8h]@2
301 301
302 result = a1; 302 result = a1;
303 if ( a1->uParentBillboardID == -1 ) 303 if ( a1->uParentBillboardID == -1 )
304 goto LABEL_14; 304 {
305 result = 0;
306 return (bool)result;
307 }
305 v5 = a1->pQuards[0].pos.x; 308 v5 = a1->pQuards[0].pos.x;
306 a1a = a1->pQuards[3].pos.x; 309 a1a = a1->pQuards[3].pos.x;
307 v6 = result->pQuards[0].pos.y; 310 v6 = result->pQuards[0].pos.y;
308 result = (RenderBillboardD3D *)LODWORD(result->pQuards[1].pos.y); 311 result = (RenderBillboardD3D *)LODWORD(result->pQuards[1].pos.y);
309 v29 = v6; 312 v29 = v6;
324 v9 = x + 1.0; 327 v9 = x + 1.0;
325 //UNDEF(v8); 328 //UNDEF(v8);
326 v10 = v9 < v5; 329 v10 = v9 < v5;
327 v11 = 0; 330 v11 = 0;
328 v12 = v9 == v5; 331 v12 = v9 == v5;
329 BYTE1(result) = HIBYTE(v8);//crash 332 //BYTE1(result) = HIBYTE(v8);//crash
330 if ( v9 >= v5 333 if ( v9 >= v5
331 && (v14 = x - 1.0, /*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, BYTE1(result) = HIBYTE(v13), v15 | v17) 334 && (v14 = x - 1.0, /*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, /*BYTE1(result) = HIBYTE(v13),*/ v15 | v17)
332 && (v19 = y + 1.0, /*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, BYTE1(result) = HIBYTE(v18), v19 >= v29) 335 && (v19 = y + 1.0, /*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, /*BYTE1(result) = HIBYTE(v18),*/ v19 >= v29)
333 && (v24 = y - 1.0, /*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, BYTE1(result) = HIBYTE(v23), v25 | v27) ) 336 && (v24 = y - 1.0, /*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, /*BYTE1(result) = HIBYTE(v23),*/ v25 | v27) )
334 LOBYTE(result) = 1; 337 LOBYTE(result) = 1;
335 else 338 else
336 LABEL_14:
337 LOBYTE(result) = 0; 339 LOBYTE(result) = 0;
338 return (bool)result; 340 return (bool)result;
339 } 341 }
340 342
341 //----- (004C16B4) -------------------------------------------------------- 343 //----- (004C16B4) --------------------------------------------------------
1818 v8 = v6 * 0.000015259022 + (double)(v5 >> 16), 1820 v8 = v6 * 0.000015259022 + (double)(v5 >> 16),
1819 //UNDEF(v7), 1821 //UNDEF(v7),
1820 v9 = v8 < fDepth, 1822 v9 = v8 < fDepth,
1821 v10 = 0, 1823 v10 = 0,
1822 v11 = v8 == fDepth, 1824 v11 = v8 == fDepth,
1823 BYTE1(result) = HIBYTE(v7), 1825 /*BYTE1(result) = HIBYTE(v7),*/
1824 v9 | v11) ) 1826 v9 | v11) )
1825 { 1827 {
1826 LOWORD(v5) = 0; 1828 LOWORD(v5) = 0;
1827 v57 = v5; 1829 v57 = v5;
1828 GetPolygonCenter( 1830 GetPolygonCenter(