diff 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
line wrap: on
line diff
--- a/LightmapBuilder.cpp	Fri Jul 26 18:11:36 2013 +0600
+++ b/LightmapBuilder.cpp	Fri Jul 26 21:16:51 2013 +0200
@@ -741,6 +741,7 @@
     v5 = (char *)&a1->flt_2C;
     do
     {
+      __debugbreak(); // warning C4700: uninitialized local variable 'v7' used
       if ( *(float *)v5 < 0.0
         || (v6 = *(float *)v5, /*UNDEF(v7),*/ v8 = 1.0 < v6, v9 = 0, v10 = 1.0 == v6, LOWORD(result) = v7, v6 <= 1.0) )
       {
@@ -749,6 +750,7 @@
         v14 = 0.0 < v12;
         v15 = 0;
         v16 = 0.0 == v12;
+      __debugbreak(); // warning C4700: uninitialized local variable 'v13' used
         LOWORD(result) = v13;
         if ( v12 >= 0.0 )
           v11 = *(float *)v5;
@@ -880,6 +882,7 @@
     a1.Normalize();
     if ( uLightType & 4 )
     {
+      __debugbreak(); // warning C4700: uninitialized local variable 'v18' used
       v22[1] = v18;
       uLightType = dword_4D86D8;
       v22[0] = v18;
@@ -1473,6 +1476,7 @@
       v25 = 1.0;
     }
     v9->field_10 = v25;
+      __debugbreak(); // warning C4700: uninitialized local variable 'v27' used
     if ( v9->field_14 < 0.0
       || (v26 = v9->field_14,
           //UNDEF(v27),
@@ -1487,6 +1491,7 @@
       v34 = 0.0 < v32;
       v35 = 0;
       v36 = 0.0 == v32;
+      __debugbreak(); // warning C4700: uninitialized local variable 'v33' used
       BYTE1(result) = HIBYTE(v33);
       if ( v32 >= 0.0 )
         v31 = v9->field_14;