diff SaveLoad.cpp @ 2184:e0863f5beee0

SPELL_WATER_RECHARGE_ITEM
author Ritor1
date Fri, 24 Jan 2014 18:01:51 +0600
parents 17b3e40daedc
children c2eeeb991a87
line wrap: on
line diff
--- a/SaveLoad.cpp	Thu Jan 23 23:35:10 2014 +0600
+++ b/SaveLoad.cpp	Fri Jan 24 18:01:51 2014 +0600
@@ -158,21 +158,19 @@
 
   for (uint i = 0; i < 4; ++i)
   {
-    uchar uQuickspell = pParty->pPlayers[i].uQuickSpell;
-    if (uQuickspell)
-      stru_AA1058[i]._494836(uQuickspell, i + 1);
+    if ( pParty->pPlayers[i].uQuickSpell )
+      AA1058_PartyQuickSpellSound[i].AddPartySpellSound(pParty->pPlayers[i].uQuickSpell, i + 1);
 
     for (uint j = 0; j < 2; ++j)
     {
       uint uEquipIdx = pParty->pPlayers[i].pEquipment.pIndices[j];
       if (uEquipIdx)
       {
-        int uItemID = pParty->pPlayers[i].pInventoryItemList[uEquipIdx - 1].uItemID;
-        if (pItemsTable->pItems[uItemID].uEquipType == EQUIP_WAND)//жезл
+        int pItemID = pParty->pPlayers[i].pInventoryItemList[uEquipIdx - 1].uItemID;
+        if (pItemsTable->pItems[pItemID].uEquipType == EQUIP_WAND && pItemID )//жезл
         {
-                __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
-          v31 = *((int *)&pSpellDatas[66].uNormalLevelRecovery + uItemID);
-          stru_A750F8[i]._494836(v31, i + 9);
+          __debugbreak();  // looks like offset in player's inventory and wand_lut much like case in 0042ECB5
+          stru_A750F8[i].AddPartySpellSound(wand_spell_ids[pItemID - ITEM_WAND_FIRE], i + 9);
         }
       }
     }