diff Indoor.cpp @ 2:2ca04ccb612a

NoCD, main menu, various
author Nomad
date Wed, 10 Oct 2012 14:21:15 +0200
parents ac0fb48cd27a
children 540178ef9b18
line wrap: on
line diff
--- a/Indoor.cpp	Tue Oct 09 13:09:08 2012 +0200
+++ b/Indoor.cpp	Wed Oct 10 14:21:15 2012 +0200
@@ -53,16 +53,16 @@
 void __fastcall sub_43F39E(IndoorLocation_drawstru *_this)
 {
   int *v1; // ecx@1
-  double v2; // ST30_8@3
-  double v3; // ST30_8@6
-  double v4; // ST28_8@6
+  //double v2; // ST30_8@3
+  //double v3; // ST30_8@6
+  //double v4; // ST28_8@6
   int v5; // eax@4
   int v6; // eax@7
   unsigned int v7; // ebx@8
   BLVSector *v8; // esi@8
   unsigned __int16 *v9; // edi@8
   int i; // [sp+18h] [bp-8h]@7
-  unsigned __int8 v11; // [sp+1Ch] [bp-4h]@3
+  //unsigned __int8 v11; // [sp+1Ch] [bp-4h]@3
   signed int v12; // [sp+1Ch] [bp-4h]@8
 
   pBLVRenderParams->Set(_this);
@@ -73,24 +73,24 @@
   uNumBillboardsToDraw = 0;
   if ( !byte_4D864C || !(BYTE1(pGame->uFlags) & 0x10) )
   {
-    v2 = pParty->flt_TorchlightColorB + 6.7553994e15;
-    v11 = LOBYTE(v2);
+    //v2 = pParty->flt_TorchlightColorB + 6.7553994e15;
+    //v11 = LOBYTE(v2);
     if ( (signed __int64)pParty->pPartyBuffs[16].uExpireTime <= 0 )
       v5 = 800;
     else
       v5 = 800 * pParty->pPartyBuffs[16].uPower;
     LOBYTE(v1) = byte_4E94D0;
-    v4 = pParty->flt_TorchlightColorR + 6.7553994e15;
-    v3 = pParty->flt_TorchlightColorG + 6.7553994e15;
+    //v4 = pParty->flt_TorchlightColorR + 6.7553994e15;
+    //v3 = pParty->flt_TorchlightColorG + 6.7553994e15;
     pMobileLightsStack->AddLight(
       SLOWORD(pBLVRenderParams->vPartyPos.x),
       SLOWORD(pBLVRenderParams->vPartyPos.y),
       SLOWORD(pBLVRenderParams->vPartyPos.z),
       SLOWORD(pBLVRenderParams->uRadius),
       v5,
-      LOBYTE(v4),
-      LOBYTE(v3),
-      v11,
+      floorf(pParty->flt_TorchlightColorR),
+      floorf(pParty->flt_TorchlightColorG),
+      floorf(pParty->flt_TorchlightColorB),
       v1);
   }
   PrepareWallsRenderList_BLV();