comparison Indoor.cpp @ 2:2ca04ccb612a

NoCD, main menu, various
author Nomad
date Wed, 10 Oct 2012 14:21:15 +0200
parents ac0fb48cd27a
children 540178ef9b18
comparison
equal deleted inserted replaced
1:ac0fb48cd27a 2:2ca04ccb612a
51 51
52 //----- (0043F39E) -------------------------------------------------------- 52 //----- (0043F39E) --------------------------------------------------------
53 void __fastcall sub_43F39E(IndoorLocation_drawstru *_this) 53 void __fastcall sub_43F39E(IndoorLocation_drawstru *_this)
54 { 54 {
55 int *v1; // ecx@1 55 int *v1; // ecx@1
56 double v2; // ST30_8@3 56 //double v2; // ST30_8@3
57 double v3; // ST30_8@6 57 //double v3; // ST30_8@6
58 double v4; // ST28_8@6 58 //double v4; // ST28_8@6
59 int v5; // eax@4 59 int v5; // eax@4
60 int v6; // eax@7 60 int v6; // eax@7
61 unsigned int v7; // ebx@8 61 unsigned int v7; // ebx@8
62 BLVSector *v8; // esi@8 62 BLVSector *v8; // esi@8
63 unsigned __int16 *v9; // edi@8 63 unsigned __int16 *v9; // edi@8
64 int i; // [sp+18h] [bp-8h]@7 64 int i; // [sp+18h] [bp-8h]@7
65 unsigned __int8 v11; // [sp+1Ch] [bp-4h]@3 65 //unsigned __int8 v11; // [sp+1Ch] [bp-4h]@3
66 signed int v12; // [sp+1Ch] [bp-4h]@8 66 signed int v12; // [sp+1Ch] [bp-4h]@8
67 67
68 pBLVRenderParams->Set(_this); 68 pBLVRenderParams->Set(_this);
69 uNumMobileLightsApplied = 0; 69 uNumMobileLightsApplied = 0;
70 uNumDecorationsDrawnThisFrame = 0; 70 uNumDecorationsDrawnThisFrame = 0;
71 _unused000 = 0; 71 _unused000 = 0;
72 uNumSpritesDrawnThisFrame = 0; 72 uNumSpritesDrawnThisFrame = 0;
73 uNumBillboardsToDraw = 0; 73 uNumBillboardsToDraw = 0;
74 if ( !byte_4D864C || !(BYTE1(pGame->uFlags) & 0x10) ) 74 if ( !byte_4D864C || !(BYTE1(pGame->uFlags) & 0x10) )
75 { 75 {
76 v2 = pParty->flt_TorchlightColorB + 6.7553994e15; 76 //v2 = pParty->flt_TorchlightColorB + 6.7553994e15;
77 v11 = LOBYTE(v2); 77 //v11 = LOBYTE(v2);
78 if ( (signed __int64)pParty->pPartyBuffs[16].uExpireTime <= 0 ) 78 if ( (signed __int64)pParty->pPartyBuffs[16].uExpireTime <= 0 )
79 v5 = 800; 79 v5 = 800;
80 else 80 else
81 v5 = 800 * pParty->pPartyBuffs[16].uPower; 81 v5 = 800 * pParty->pPartyBuffs[16].uPower;
82 LOBYTE(v1) = byte_4E94D0; 82 LOBYTE(v1) = byte_4E94D0;
83 v4 = pParty->flt_TorchlightColorR + 6.7553994e15; 83 //v4 = pParty->flt_TorchlightColorR + 6.7553994e15;
84 v3 = pParty->flt_TorchlightColorG + 6.7553994e15; 84 //v3 = pParty->flt_TorchlightColorG + 6.7553994e15;
85 pMobileLightsStack->AddLight( 85 pMobileLightsStack->AddLight(
86 SLOWORD(pBLVRenderParams->vPartyPos.x), 86 SLOWORD(pBLVRenderParams->vPartyPos.x),
87 SLOWORD(pBLVRenderParams->vPartyPos.y), 87 SLOWORD(pBLVRenderParams->vPartyPos.y),
88 SLOWORD(pBLVRenderParams->vPartyPos.z), 88 SLOWORD(pBLVRenderParams->vPartyPos.z),
89 SLOWORD(pBLVRenderParams->uRadius), 89 SLOWORD(pBLVRenderParams->uRadius),
90 v5, 90 v5,
91 LOBYTE(v4), 91 floorf(pParty->flt_TorchlightColorR),
92 LOBYTE(v3), 92 floorf(pParty->flt_TorchlightColorG),
93 v11, 93 floorf(pParty->flt_TorchlightColorB),
94 v1); 94 v1);
95 } 95 }
96 PrepareWallsRenderList_BLV(); 96 PrepareWallsRenderList_BLV();
97 PrepareItemsRenderList_BLV(); 97 PrepareItemsRenderList_BLV();
98 PrepareActorRenderList_BLV(); 98 PrepareActorRenderList_BLV();