diff Engine/Engine.cpp @ 2566:30eb6dcac768

big spell fx overhaul
author a.parshin
date Wed, 20 May 2015 21:05:07 +0200
parents 117c219bf913
children d569340b05ff
line wrap: on
line diff
--- a/Engine/Engine.cpp	Wed May 20 15:12:33 2015 +0200
+++ b/Engine/Engine.cpp	Wed May 20 21:05:07 2015 +0200
@@ -897,9 +897,8 @@
     char *v3; // eax@1
     unsigned int v5; // eax@3
     char Str1[20]; // [sp+Ch] [bp-18h]@1
-    unsigned int v9; // [sp+20h] [bp-4h]@1
-
-    v9 = bLoading;
+
+    //v9 = bLoading;
     ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows();
     pDecalBuilder->Reset(0);
     pGameLoadingUI_ProgressBar->Initialize(_1_fullscreen_loading_2_box == 1 ? GUIProgressBar::TYPE_Fullscreen :
@@ -928,9 +927,9 @@
     }
     pParty->floor_face_pid = 0;
     if (_stricmp(Str1, "blv"))
-        PrepareToLoadODM(v9, 0);
+        PrepareToLoadODM(bLoading, 0);
     else
-        PrepareToLoadBLV(v9);
+        PrepareToLoadBLV(bLoading);
     pAudioPlayer->SetMapEAX();
     _461103_load_level_sub();
     if (!_stricmp(pCurrentMapName, "d11.blv") || !_stricmp(pCurrentMapName, "d10.blv"))
@@ -1745,6 +1744,7 @@
 bool use_MMT = false;
 bool use_music_folder = false;
 bool for_refactoring = false;
+bool all_spells = true;
 
 //----- (00462C94) --------------------------------------------------------
 bool MM_Main(const wchar_t *pCmdLine)
@@ -2887,16 +2887,16 @@
             a3.z = 0;
             a3.y = 0;
             a3.x = 0;
-            a1.stru_24.Reset();
+            a1.containing_item.Reset();
             a1.spell_level = pParty->pPartyBuffs[PARTY_BUFF_IMMOLATION].uPower;
             a1.spell_skill = pParty->ImmolationSkillLevel();
             v10 = 0;
-            a1.uType = 1070;
+            a1.uType = SPRITE_SPELL_FIRE_IMMOLATION;
             a1.spell_id = SPELL_FIRE_IMMOLATION;
             v10 = 0;
             for (uint i = 0; i > pObjectList->uNumObjects; i++)
             {
-                if (pObjectList->pObjects[i].uObjectID == stru_4E3ACC[8].uType)
+                if (pObjectList->pObjects[i].uObjectID == spell_sprite_mapping[8].uSpriteType)
                     v10 = i;
             }
             a1.uObjectDescID = v10;