diff Render.cpp @ 1075:1e38e5c049f3

DecalBuilder cleaning and some type changes
author zipi
date Sat, 25 May 2013 14:07:26 +0100
parents d4a1a46192ba
children c59ac5ea63f5
line wrap: on
line diff
--- a/Render.cpp	Sat May 25 13:30:58 2013 +0100
+++ b/Render.cpp	Sat May 25 14:07:26 2013 +0100
@@ -1935,7 +1935,7 @@
   int v83; // [sp+60h] [bp-70h]@1
   int v84; // [sp+6Ch] [bp-64h]@1
   int v85; // [sp+70h] [bp-60h]@63
-  int a4; // [sp+74h] [bp-5Ch]@73
+  float a4; // [sp+74h] [bp-5Ch]@73
   float v87; // [sp+78h] [bp-58h]@122
   int v88; // [sp+7Ch] [bp-54h]@1
   int v89; // [sp+80h] [bp-50h]@6
@@ -2096,7 +2096,7 @@
           v32 = (struct8 *)array_50AC10;
           v97 = (int)pGame->pLightmapBuilder;
           pGame->pLightmapBuilder->StackLights_TerrainFace(v23, &v95, array_50AC10, 4, 1);
-          pDecalBuilder->_49BE8A(v16, *(float *)&v23, (int)&v95, array_50AC10, 4, 1);
+          pDecalBuilder->_49BE8A(v16, v23, &v95, array_50AC10, 4, 1);
           a5 = 4;
           if ( byte_4D864C && pGame->uFlags & 0x80 )
           {
@@ -2238,7 +2238,7 @@
       }*/
       v96 = pGame->pLightmapBuilder;
       pGame->pLightmapBuilder->StackLights_TerrainFace(v48, (float *)&a4, array_50AC10, 3, 0);
-      pDecalBuilder->_49BE8A(v40, *(float *)&v48, (int)&a4, array_50AC10, 3, 0);
+      pDecalBuilder->_49BE8A(v40, v48, &a4, array_50AC10, 3, 0);
       uNumVertices = 3;
       if ( byte_4D864C && pGame->uFlags & 0x80 )
       {
@@ -2361,7 +2361,7 @@
       }*/
       v96 = pGame->pLightmapBuilder;
       pGame->pLightmapBuilder->StackLights_TerrainFace(v63, &v87, array_50AC10, 3, 1);
-      pDecalBuilder->_49BE8A(v40, *(float *)&v63, (int)&v87, array_50AC10, 3, 1);
+      pDecalBuilder->_49BE8A(v40, v63, &v87, array_50AC10, 3, 1);
       v100 = 3;
       if ( byte_4D864C && pGame->uFlags & 0x80 )
       {