comparison UI/UIPopup.cpp @ 1754:421c29d4ab3e

UITransition.cpp cleaning(continue)
author Ritor1
date Mon, 30 Sep 2013 17:29:27 +0600
parents dc5f145b3d5d
children 633f81bb3ae7
comparison
equal deleted inserted replaced
1753:999bf8c99514 1754:421c29d4ab3e
1660 { 1660 {
1661 if (item->uItemID < ITEM_POTION_BOTTLE || item->uItemID > ITEM_POTION_REJUVENATION)// all potions 1661 if (item->uItemID < ITEM_POTION_BOTTLE || item->uItemID > ITEM_POTION_REJUVENATION)// all potions
1662 { 1662 {
1663 if (item->GetItemEquipType() != EQUIP_WAND) // can recharge only wands 1663 if (item->GetItemEquipType() != EQUIP_WAND) // can recharge only wands
1664 { 1664 {
1665 pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0); 1665 pAudioPlayer->PlaySound(SOUND_error, 0, 0, -1, 0, 0, 0, 0);
1666 return; 1666 return;
1667 } 1667 }
1668 1668
1669 v31 = (70.0 - (double)pParty->pPickedItem.uEnchantmentType) * 0.01; 1669 v31 = (70.0 - (double)pParty->pPickedItem.uEnchantmentType) * 0.01;
1670 if ( v31 < 0.0 ) 1670 if ( v31 < 0.0 )
1993 } 1993 }
1994 } 1994 }
1995 GameUI_DrawItemInfo(item); 1995 GameUI_DrawItemInfo(item);
1996 return; 1996 return;
1997 } 1997 }
1998