comparison mm7_5.cpp @ 657:7747161ea5b5

RenderBillboard member rename
author Nomad
date Wed, 13 Mar 2013 01:29:33 +0200
parents 2bf48d11d742
children c10163a6d946
comparison
equal deleted inserted replaced
653:431a8b0c2bf1 657:7747161ea5b5
9274 } 9274 }
9275 } 9275 }
9276 9276
9277 9277
9278 //----- (0043F515) -------------------------------------------------------- 9278 //----- (0043F515) --------------------------------------------------------
9279 void MessWithBillboards_BLV() 9279 void FindBillboardsLightLevels_BLV()
9280 { 9280 {
9281 for (uint i = 0; i < uNumBillboardsToDraw; ++i) 9281 for (uint i = 0; i < uNumBillboardsToDraw; ++i)
9282 { 9282 {
9283 auto p = pBillboardRenderList + i; 9283 auto p = pBillboardRenderList + i;
9284 9284
9285 if (p->field_1E & 2 || uCurrentlyLoadedLevelType == LEVEL_Indoor && !p->uIndoorSectorID) 9285 if (p->field_1E & 2 || uCurrentlyLoadedLevelType == LEVEL_Indoor && !p->uIndoorSectorID)
9286 p->uPaletteSubindex = 0; 9286 p->dimming_level = 0;
9287 else 9287 else
9288 p->uPaletteSubindex = _43F55F_get_billboard_light_level(p, -1); 9288 p->dimming_level = _43F55F_get_billboard_light_level(p, -1);
9289 } 9289 }
9290 } 9290 }
9291 9291
9292 //----- (0043F55F) -------------------------------------------------------- 9292 //----- (0043F55F) --------------------------------------------------------
9293 int __fastcall _43F55F_get_billboard_light_level(RenderBillboard *a1, int uBaseLightLevel) 9293 int __fastcall _43F55F_get_billboard_light_level(RenderBillboard *a1, int uBaseLightLevel)
9299 v3 = pIndoor->pSectors[a1->uIndoorSectorID].uMinAmbientLightLevel; 9299 v3 = pIndoor->pSectors[a1->uIndoorSectorID].uMinAmbientLightLevel;
9300 } 9300 }
9301 else 9301 else
9302 { 9302 {
9303 if ( uBaseLightLevel == -1 ) 9303 if ( uBaseLightLevel == -1 )
9304 v3 = a1->uPaletteSubindex; 9304 v3 = a1->dimming_level;
9305 else 9305 else
9306 v3 = uBaseLightLevel; 9306 v3 = uBaseLightLevel;
9307 } 9307 }
9308 return _43F5C8_get_point_light_level_with_respect_to_lights(v3, a1->uIndoorSectorID, a1->world_x, a1->world_y, a1->world_z); 9308 return _43F5C8_get_point_light_level_with_respect_to_lights(v3, a1->uIndoorSectorID, a1->world_x, a1->world_y, a1->world_z);
9309 } 9309 }