diff Render.cpp @ 143:b099dd069171

.
author Nomad
date Tue, 12 Feb 2013 06:29:34 +0200
parents 8b8fd4d83fdc
children 8ab4484c22e0 d92c78ab54fe
line wrap: on
line diff
--- a/Render.cpp	Tue Feb 12 06:28:08 2013 +0200
+++ b/Render.cpp	Tue Feb 12 06:29:34 2013 +0200
@@ -2939,7 +2939,7 @@
 void Render::TransformBillboardsAndSetPalettesODM()
 {
   //int v0; // edi@1
-  //char *v1; // esi@2
+  char *v1; // esi@2
   unsigned int v2; // edx@3
   int v3; // eax@3
   int v4; // edi@3
@@ -2972,13 +2972,14 @@
   //v16 = 0;
   for (int i = 0; i < uNumBillboardsToDraw; ++i)
   {
+    auto pBillboard = pBillboardRenderList + i;
     v17 = 0;
-    v1 = (char *)&pBillboardRenderList[0].uScreenSpaceY;
+    v1 = (char *)&pBillboardRenderList[i].uScreenSpaceY;
     //do
     //{
-      billboard.uScreenSpaceX = *((short *)v1 - 1);
+      billboard.uScreenSpaceX = pBillboard->uScreenSpaceX;
       v2 = *((short *)v1 - 5);
-      billboard.uScreenSpaceY = *(short *)v1;
+      billboard.uScreenSpaceY = pBillboard->uScreenSpaceY;
       v3 = *((int *)v1 - 10);
       billboard.uParentBillboardID = i;
       v4 = *((int *)v1 + 1);