Mercurial > mm7
diff Engine/Engine.cpp @ 2562:b8a56afc6ba1
new var no_actors, lights_flag, debug_lights, StationaryLights and MobileLights
author | Ritor1 |
---|---|
date | Sun, 17 May 2015 22:42:13 +0600 |
parents | 67d837007a4c |
children | 65c97624c047 |
line wrap: on
line diff
--- a/Engine/Engine.cpp Thu May 14 19:29:28 2015 +0600 +++ b/Engine/Engine.cpp Sun May 17 22:42:13 2015 +0600 @@ -460,8 +460,8 @@ //depth = v2; PickMouse(depth, cursor.x, cursor.y, false, v10, v11); - pLightmapBuilder->std__vector_000004_size = 0; - pLightmapBuilder->std__vector_183808_size = 0; + pLightmapBuilder->StationaryLightsCount = 0; + pLightmapBuilder->MobileLightsCount = 0; pDecalBuilder->std__vector_pDecals_size = 0; pDecalBuilder->field_308008 = 0; if (!_44F07B()) @@ -545,10 +545,10 @@ //----- (0044EE7C) -------------------------------------------------------- bool Engine::draw_debug_outlines() { - if (uFlags & 0x04) + if (/*uFlags & 0x04*/ debug_lights) { pLightmapBuilder->DrawDebugOutlines(-1); - pDecalBuilder->DrawDecalDebugOutlines(); + //pDecalBuilder->DrawDecalDebugOutlines(); } return true; } @@ -1066,7 +1066,7 @@ //static_assert(sizeof(ArcomageGame) == 0xFB, "Wrong type size"); static_assert(sizeof(CastSpellInfo) == 0x14, "Wrong type size"); static_assert(sizeof(ArcomageCard) == 0x6C, "Wrong type size"); - static_assert(sizeof(stru320) == 0x3FC, "Wrong type size"); + static_assert(sizeof(LightsData) == 0x3FC, "Wrong type size"); static_assert(sizeof(TravelInfo) == 0x20, "Wrong type size"); static_assert(sizeof(stru336) == 0x798, "Wrong type size"); static_assert(sizeof(Vec3_short_) == 6, "Wrong type size"); @@ -2138,6 +2138,9 @@ signed int v20; // [sp+18h] [bp-44h]@14 int v21[16]; // [sp+1Ch] [bp-40h]@17 + if(no_actors) + uNumActors = 0; + GenerateItemsInChest(); pGameLoadingUI_ProgressBar->Progress(); pParty->uFlags |= 2;