diff Game.cpp @ 1094:c40d40027b77

npc some clean
author Gloval
date Sun, 26 May 2013 18:55:31 +0400
parents bcebd491e8fa
children 7c3772c91c7c
line wrap: on
line diff
--- a/Game.cpp	Sun May 26 14:13:43 2013 +0400
+++ b/Game.cpp	Sun May 26 18:55:31 2013 +0400
@@ -582,30 +582,21 @@
 //----- (0044F120) --------------------------------------------------------
 void Game::PushStationaryLights(int a2)
 {
-  signed int v3; // ebx@1
-  char *v4; // esi@2
-
-  auto v2 = this;
-  v3 = 0;
-  if ( (signed int)this->uNumStationaryLights > 0 )
-  {
-    v4 = (char *)&this->pStationaryLights[0].vRGBColor.y;
-    do
-    {
-      pStationaryLightsStack->AddLight(
-        (signed __int64)*((float *)v4 - 4),
-        (signed __int64)*((float *)v4 - 3),
-        (signed __int64)*((float *)v4 - 2),
-        (signed __int64)*((float *)v4 + 2),
-        (signed __int64)*((float *)v4 - 1),
-        (signed __int64)*(float *)v4,
-        (signed __int64)*((float *)v4 + 1),
-        byte_4E94D0);
-      ++v3;
-      v4 += 28;
-    }
-    while ( v3 < (signed int)v2->uNumStationaryLights );
-  }
+  Game__StationaryLight* pLight;
+ 
+  for( int i=0; i<uNumStationaryLights; ++i ) 
+      {
+       pLight=&pStationaryLights[i];
+       pStationaryLightsStack->AddLight(
+           pLight->vPosition.x, 
+           pLight->vPosition.y,
+           pLight->vPosition.z,
+           pLight->flt_18,
+           pLight->vRGBColor.x,
+           pLight->vRGBColor.y,
+           pLight->vRGBColor.z,
+           byte_4E94D0);
+      }
 }
 // 4E94D0: using guessed type char byte_4E94D0;