Mercurial > mm7
diff Engine/Graphics/Outdoor.cpp @ 2566:30eb6dcac768
big spell fx overhaul
author | a.parshin |
---|---|
date | Wed, 20 May 2015 21:05:07 +0200 |
parents | b8a56afc6ba1 |
children | d569340b05ff |
line wrap: on
line diff
--- a/Engine/Graphics/Outdoor.cpp Wed May 20 15:12:33 2015 +0200 +++ b/Engine/Graphics/Outdoor.cpp Wed May 20 21:05:07 2015 +0200 @@ -2265,13 +2265,13 @@ { if ( !(pSpriteObjects[i].uAttributes & 8) && !(pObjectList->pObjects[pSpriteObjects[i].uObjectDescID].uFlags & 0x10) ) pSpriteObjects[i].vPosition.z = GetTerrainHeightsAroundParty2(pSpriteObjects[i].vPosition.x, pSpriteObjects[i].vPosition.y, (int *)&v5, 0); - if ( pSpriteObjects[i].stru_24.uItemID ) + if (pSpriteObjects[i].containing_item.uItemID) { - if ( pSpriteObjects[i].stru_24.uItemID != 220 - && pItemsTable->pItems[pSpriteObjects[i].stru_24.uItemID].uEquipType == EQUIP_POTION - && !pSpriteObjects[i].stru_24.uEnchantmentType ) - pSpriteObjects[i].stru_24.uEnchantmentType = rand() % 15 + 5; - pItemsTable->SetSpecialBonus(&pSpriteObjects[i].stru_24); + if (pSpriteObjects[i].containing_item.uItemID != 220 + && pItemsTable->pItems[pSpriteObjects[i].containing_item.uItemID].uEquipType == EQUIP_POTION + && !pSpriteObjects[i].containing_item.uEnchantmentType) + pSpriteObjects[i].containing_item.uEnchantmentType = rand() % 15 + 5; + pItemsTable->SetSpecialBonus(&pSpriteObjects[i].containing_item); } } }