Mercurial > mm7
comparison LightmapBuilder.cpp @ 1409:c9e3b93ec570
Highlighted locations with "using uninitialized variable" warning.
author | Nomad |
---|---|
date | Fri, 26 Jul 2013 21:16:51 +0200 |
parents | 8ea496564034 |
children | c4ab816fcc5e |
comparison
equal
deleted
inserted
replaced
1408:204cce84300b | 1409:c9e3b93ec570 |
---|---|
739 { | 739 { |
740 HIWORD(result) = HIWORD(a1); | 740 HIWORD(result) = HIWORD(a1); |
741 v5 = (char *)&a1->flt_2C; | 741 v5 = (char *)&a1->flt_2C; |
742 do | 742 do |
743 { | 743 { |
744 __debugbreak(); // warning C4700: uninitialized local variable 'v7' used | |
744 if ( *(float *)v5 < 0.0 | 745 if ( *(float *)v5 < 0.0 |
745 || (v6 = *(float *)v5, /*UNDEF(v7),*/ v8 = 1.0 < v6, v9 = 0, v10 = 1.0 == v6, LOWORD(result) = v7, v6 <= 1.0) ) | 746 || (v6 = *(float *)v5, /*UNDEF(v7),*/ v8 = 1.0 < v6, v9 = 0, v10 = 1.0 == v6, LOWORD(result) = v7, v6 <= 1.0) ) |
746 { | 747 { |
747 v12 = *(float *)v5; | 748 v12 = *(float *)v5; |
748 //UNDEF(v13); | 749 //UNDEF(v13); |
749 v14 = 0.0 < v12; | 750 v14 = 0.0 < v12; |
750 v15 = 0; | 751 v15 = 0; |
751 v16 = 0.0 == v12; | 752 v16 = 0.0 == v12; |
753 __debugbreak(); // warning C4700: uninitialized local variable 'v13' used | |
752 LOWORD(result) = v13; | 754 LOWORD(result) = v13; |
753 if ( v12 >= 0.0 ) | 755 if ( v12 >= 0.0 ) |
754 v11 = *(float *)v5; | 756 v11 = *(float *)v5; |
755 else | 757 else |
756 v11 = 0.0; | 758 v11 = 0.0; |
878 a1.x = v16 - a1.x; | 880 a1.x = v16 - a1.x; |
879 a1.y = (float)v23 - a1.y; | 881 a1.y = (float)v23 - a1.y; |
880 a1.Normalize(); | 882 a1.Normalize(); |
881 if ( uLightType & 4 ) | 883 if ( uLightType & 4 ) |
882 { | 884 { |
885 __debugbreak(); // warning C4700: uninitialized local variable 'v18' used | |
883 v22[1] = v18; | 886 v22[1] = v18; |
884 uLightType = dword_4D86D8; | 887 uLightType = dword_4D86D8; |
885 v22[0] = v18; | 888 v22[0] = v18; |
886 v19 = fabs(a1.z * pNormal->z + a1.y * pNormal->y + a1.x * pNormal->x); | 889 v19 = fabs(a1.z * pNormal->z + a1.y * pNormal->y + a1.x * pNormal->x); |
887 v20 = v19 * *(float *)&uLightType * a2; | 890 v20 = v19 * *(float *)&uLightType * a2; |
1471 else | 1474 else |
1472 { | 1475 { |
1473 v25 = 1.0; | 1476 v25 = 1.0; |
1474 } | 1477 } |
1475 v9->field_10 = v25; | 1478 v9->field_10 = v25; |
1479 __debugbreak(); // warning C4700: uninitialized local variable 'v27' used | |
1476 if ( v9->field_14 < 0.0 | 1480 if ( v9->field_14 < 0.0 |
1477 || (v26 = v9->field_14, | 1481 || (v26 = v9->field_14, |
1478 //UNDEF(v27), | 1482 //UNDEF(v27), |
1479 v28 = 1.0 < v26, | 1483 v28 = 1.0 < v26, |
1480 v29 = 0, | 1484 v29 = 0, |
1485 v32 = v9->field_14; | 1489 v32 = v9->field_14; |
1486 //UNDEF(v33); | 1490 //UNDEF(v33); |
1487 v34 = 0.0 < v32; | 1491 v34 = 0.0 < v32; |
1488 v35 = 0; | 1492 v35 = 0; |
1489 v36 = 0.0 == v32; | 1493 v36 = 0.0 == v32; |
1494 __debugbreak(); // warning C4700: uninitialized local variable 'v33' used | |
1490 BYTE1(result) = HIBYTE(v33); | 1495 BYTE1(result) = HIBYTE(v33); |
1491 if ( v32 >= 0.0 ) | 1496 if ( v32 >= 0.0 ) |
1492 v31 = v9->field_14; | 1497 v31 = v9->field_14; |
1493 else | 1498 else |
1494 v31 = 0.0; | 1499 v31 = 0.0; |