Mercurial > mm7
changeset 1717:baa4eda7f924
fixing bugs introduced by me :)
author | Grumpy7 |
---|---|
date | Wed, 25 Sep 2013 08:39:03 +0200 |
parents | bc0fa6153fe1 |
children | 7b6b4ce8da76 34dd357a489d |
files | Player.cpp UI/UICharacter.cpp |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Player.cpp Wed Sep 25 08:13:09 2013 +0200 +++ b/Player.cpp Wed Sep 25 08:39:03 2013 +0200 @@ -2593,9 +2593,9 @@ if (HasItemEquipped(EQUIP_OFF_HAND) && GetEquippedItemEquipType(EQUIP_OFF_HAND) != EQUIP_SHIELD) // ADD: shield check because shield recovery is added later and can be accidentally doubled { + if (base_recovery_times_per_weapon_type[GetOffHandItem()->GetPlayerSkillType()] > weapon_recovery) + { weapon = GetOffHandItem(); - if (base_recovery_times_per_weapon_type[weapon->GetPlayerSkillType()] > weapon_recovery) - { weapon_recovery = base_recovery_times_per_weapon_type[weapon->GetPlayerSkillType()]; } }
--- a/UI/UICharacter.cpp Wed Sep 25 08:13:09 2013 +0200 +++ b/UI/UICharacter.cpp Wed Sep 25 08:39:03 2013 +0200 @@ -1063,7 +1063,7 @@ //--------------------------------------------(Hand/Рука)------------------------------------------------------ if ( !pPlayers[uPlayerID]->pEquipment.uMainHand || ( pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetItemEquipType() != EQUIP_MAIN_HAND) - && (pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetItemEquipType() != PLAYER_SKILL_SPEAR + && (pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetPlayerSkillType() != PLAYER_SKILL_SPEAR || pPlayers[uPlayerID]->pEquipment.uShield) ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlads[uPlayerID - 1])); @@ -1131,7 +1131,7 @@ if ( pPlayers[uPlayerID]->pEquipment.uMainHand ) { if ( pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetItemEquipType() == EQUIP_MAIN_HAND - || pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetItemEquipType() == PLAYER_SKILL_SPEAR + || pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetPlayerSkillType() == PLAYER_SKILL_SPEAR && !pPlayers[uPlayerID]->pEquipment.uShield ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlaus[uPlayerID - 1])); @@ -1526,7 +1526,7 @@ { item = &pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1]; if ( item->GetItemEquipType() == EQUIP_MAIN_HAND - || item->GetItemEquipType() == PLAYER_SKILL_SPEAR + || item->GetPlayerSkillType() == PLAYER_SKILL_SPEAR && !pPlayers[uPlayerID]->pEquipment.uShield ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1],