comparison 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
comparison
equal deleted inserted replaced
2561:98057834c9a0 2562:b8a56afc6ba1
458 depth = 5120.0; 458 depth = 5120.0;
459 } 459 }
460 //depth = v2; 460 //depth = v2;
461 461
462 PickMouse(depth, cursor.x, cursor.y, false, v10, v11); 462 PickMouse(depth, cursor.x, cursor.y, false, v10, v11);
463 pLightmapBuilder->std__vector_000004_size = 0; 463 pLightmapBuilder->StationaryLightsCount = 0;
464 pLightmapBuilder->std__vector_183808_size = 0; 464 pLightmapBuilder->MobileLightsCount = 0;
465 pDecalBuilder->std__vector_pDecals_size = 0; 465 pDecalBuilder->std__vector_pDecals_size = 0;
466 pDecalBuilder->field_308008 = 0; 466 pDecalBuilder->field_308008 = 0;
467 if (!_44F07B()) 467 if (!_44F07B())
468 return false; 468 return false;
469 469
543 } 543 }
544 544
545 //----- (0044EE7C) -------------------------------------------------------- 545 //----- (0044EE7C) --------------------------------------------------------
546 bool Engine::draw_debug_outlines() 546 bool Engine::draw_debug_outlines()
547 { 547 {
548 if (uFlags & 0x04) 548 if (/*uFlags & 0x04*/ debug_lights)
549 { 549 {
550 pLightmapBuilder->DrawDebugOutlines(-1); 550 pLightmapBuilder->DrawDebugOutlines(-1);
551 pDecalBuilder->DrawDecalDebugOutlines(); 551 //pDecalBuilder->DrawDecalDebugOutlines();
552 } 552 }
553 return true; 553 return true;
554 } 554 }
555 555
556 //----- (0044EC23) -------------------------------------------------------- 556 //----- (0044EC23) --------------------------------------------------------
1064 static_assert(sizeof(GUIFont) == 0x1020, "Wrong type size"); 1064 static_assert(sizeof(GUIFont) == 0x1020, "Wrong type size");
1065 // static_assert(sizeof(stru262_TurnBased) == 0x40, "Wrong type size"); 1065 // static_assert(sizeof(stru262_TurnBased) == 0x40, "Wrong type size");
1066 //static_assert(sizeof(ArcomageGame) == 0xFB, "Wrong type size"); 1066 //static_assert(sizeof(ArcomageGame) == 0xFB, "Wrong type size");
1067 static_assert(sizeof(CastSpellInfo) == 0x14, "Wrong type size"); 1067 static_assert(sizeof(CastSpellInfo) == 0x14, "Wrong type size");
1068 static_assert(sizeof(ArcomageCard) == 0x6C, "Wrong type size"); 1068 static_assert(sizeof(ArcomageCard) == 0x6C, "Wrong type size");
1069 static_assert(sizeof(stru320) == 0x3FC, "Wrong type size"); 1069 static_assert(sizeof(LightsData) == 0x3FC, "Wrong type size");
1070 static_assert(sizeof(TravelInfo) == 0x20, "Wrong type size"); 1070 static_assert(sizeof(TravelInfo) == 0x20, "Wrong type size");
1071 static_assert(sizeof(stru336) == 0x798, "Wrong type size"); 1071 static_assert(sizeof(stru336) == 0x798, "Wrong type size");
1072 static_assert(sizeof(Vec3_short_) == 6, "Wrong type size"); 1072 static_assert(sizeof(Vec3_short_) == 6, "Wrong type size");
1073 static_assert(sizeof(BLVFace) == 96, "Wrong type size"); 1073 static_assert(sizeof(BLVFace) == 96, "Wrong type size");
1074 static_assert(sizeof(BLVFaceExtra) == 36, "Wrong type size"); 1074 static_assert(sizeof(BLVFaceExtra) == 36, "Wrong type size");
2135 signed int v17; // [sp+14h] [bp-48h]@3 2135 signed int v17; // [sp+14h] [bp-48h]@3
2136 signed int v18; // [sp+14h] [bp-48h]@23 2136 signed int v18; // [sp+14h] [bp-48h]@23
2137 int v19; // [sp+18h] [bp-44h]@1 2137 int v19; // [sp+18h] [bp-44h]@1
2138 signed int v20; // [sp+18h] [bp-44h]@14 2138 signed int v20; // [sp+18h] [bp-44h]@14
2139 int v21[16]; // [sp+1Ch] [bp-40h]@17 2139 int v21[16]; // [sp+1Ch] [bp-40h]@17
2140
2141 if(no_actors)
2142 uNumActors = 0;
2140 2143
2141 GenerateItemsInChest(); 2144 GenerateItemsInChest();
2142 pGameLoadingUI_ProgressBar->Progress(); 2145 pGameLoadingUI_ProgressBar->Progress();
2143 pParty->uFlags |= 2; 2146 pParty->uFlags |= 2;
2144 pParty->field_7B5_in_arena_quest = 0; 2147 pParty->field_7B5_in_arena_quest = 0;