diff Outdoor.cpp @ 2154:9bd7522cdbbb

Render decoupling. Unsorted variables cleaning.
author Nomad
date Thu, 09 Jan 2014 14:36:48 +0200
parents d28d3c006077
children c6d8253d4cbc
line wrap: on
line diff
--- a/Outdoor.cpp	Thu Jan 09 02:34:20 2014 +0200
+++ b/Outdoor.cpp	Thu Jan 09 14:36:48 2014 +0200
@@ -1022,9 +1022,9 @@
   int g_mask = 0x7E0;
   int b_mask = 0x1F;
 
-  if ( pRenderer->pRenderD3D )
+  //if ( pRenderer->pRenderD3D )
     result = 0;
-  else
+  /*else
   {
     __debugbreak();
     v5 = PaletteManager::Get_Dark_or_Red_LUT(a2, 0, 1);
@@ -1076,10 +1076,9 @@
       ++v15;
     }
     while ( v15 < 256 );
-  }
+  }*/
   return result;
 }
-// 47CB57: using guessed type char var_124[256];
 
 //----- (0047CCE2) --------------------------------------------------------
 bool OutdoorLocationTerrain::ZeroLandscape()
@@ -2970,8 +2969,8 @@
         v62 |= 4u;
       if ( v15->uGlowRadius )
       {
-        //LOBYTE(v16) = byte_4E94D3;
-        pMobileLightsStack->AddLight(x, y, z, 0, v15->uGlowRadius, 0xFFu, 0xFFu, 0xFFu, byte_4E94D3);
+        //LOBYTE(v16) = _4E94D3_light_type;
+        pMobileLightsStack->AddLight(x, y, z, 0, v15->uGlowRadius, 0xFFu, 0xFFu, 0xFFu, _4E94D3_light_type);
       }
       v17 = (x - pGame->pIndoorCameraD3D->vPartyPos.x) << 16;
       if (pGame->pIndoorCameraD3D->sRotationX)