comparison Vis.cpp @ 34:bf67f3164041

Слияние
author Ritor1
date Sun, 20 Jan 2013 18:58:44 +0600
parents b46b1404725b 8a6ba554d341
children 415e1f2d5936
comparison
equal deleted inserted replaced
33:a9e9c6989d04 34:bf67f3164041
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 { 304 goto LABEL_14;
305 result = 0;
306 return (bool)result;
307 }
308 v5 = a1->pQuards[0].pos.x; 305 v5 = a1->pQuards[0].pos.x;
309 a1a = a1->pQuards[3].pos.x; 306 a1a = a1->pQuards[3].pos.x;
310 v6 = result->pQuards[0].pos.y; 307 v6 = result->pQuards[0].pos.y;
311 result = (RenderBillboardD3D *)LODWORD(result->pQuards[1].pos.y); 308 result = (RenderBillboardD3D *)LODWORD(result->pQuards[1].pos.y);
312 v29 = v6; 309 v29 = v6;
324 v28 = v6; 321 v28 = v6;
325 LODWORD(v29) = (int)result; 322 LODWORD(v29) = (int)result;
326 } 323 }
327 v9 = x + 1.0; 324 v9 = x + 1.0;
328 //UNDEF(v8); 325 //UNDEF(v8);
329 v10 = v9 < v5; 326 //v10 = v9 < v5;
330 v11 = 0; 327 //v11 = 0;
331 v12 = v9 == v5; 328 //v12 = v9 == v5;
332 //BYTE1(result) = HIBYTE(v8);//crash 329 //BYTE1(result) = HIBYTE(v8);//crash
333 if ( v9 >= v5 330 if ( v9 >= v5
334 && (v14 = x - 1.0, /*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, /*BYTE1(result) = HIBYTE(v13),*/ v15 | v17) 331 && (v14 = x - 1.0, v14<=a1a)///*UNDEF(v13),*/ v15 = v14 < a1a, v16 = 0, v17 = v14 == a1a, BYTE1(result) = HIBYTE(v13), v15 | v17)
335 && (v19 = y + 1.0, /*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, /*BYTE1(result) = HIBYTE(v18),*/ v19 >= v29) 332 && (v19 = y + 1.0, v19>=v29)///*UNDEF(v18),*/ v20 = v19 < v29, v21 = 0, v22 = v19 == v29, BYTE1(result) = HIBYTE(v18), v19 >= v29)
336 && (v24 = y - 1.0, /*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, /*BYTE1(result) = HIBYTE(v23),*/ v25 | v27) ) 333 && (v24 = y - 1.0, v24<=v28))///*UNDEF(v23),*/ v25 = v24 < v28, v26 = 0, v27 = v24 == v28, BYTE1(result) = HIBYTE(v23), v25 | v27) )
337 LOBYTE(result) = 1; 334 LOBYTE(result) = 1;
338 else 335 else
336 LABEL_14:
339 LOBYTE(result) = 0; 337 LOBYTE(result) = 0;
340 return (bool)result; 338 return (bool)result;
341 } 339 }
342 340
343 //----- (004C16B4) -------------------------------------------------------- 341 //----- (004C16B4) --------------------------------------------------------
1820 v8 = v6 * 0.000015259022 + (double)(v5 >> 16), 1818 v8 = v6 * 0.000015259022 + (double)(v5 >> 16),
1821 //UNDEF(v7), 1819 //UNDEF(v7),
1822 v9 = v8 < fDepth, 1820 v9 = v8 < fDepth,
1823 v10 = 0, 1821 v10 = 0,
1824 v11 = v8 == fDepth, 1822 v11 = v8 == fDepth,
1825 /*BYTE1(result) = HIBYTE(v7),*/ 1823 BYTE1(result) = HIBYTE(v7),
1826 v9 | v11) ) 1824 v9 | v11) )
1827 { 1825 {
1828 LOWORD(v5) = 0; 1826 LOWORD(v5) = 0;
1829 v57 = v5; 1827 v57 = v5;
1830 GetPolygonCenter( 1828 GetPolygonCenter(