diff UI/UIPopup.cpp @ 1989:33787c8938a5

Single and Two-handed ENUM
author zipi
date Sat, 02 Nov 2013 17:45:58 +0000
parents c1c74df0a33e
children 2e6c63bdcfa9
line wrap: on
line diff
--- a/UI/UIPopup.cpp	Sat Nov 02 17:24:31 2013 +0000
+++ b/UI/UIPopup.cpp	Sat Nov 02 17:45:58 2013 +0000
@@ -240,8 +240,8 @@
   out_text[200] = 0;
   switch (inspect_item->GetItemEquipType())
   {
-    case EQUIP_OFF_HAND:
-    case EQUIP_MAIN_HAND:
+    case EQUIP_SINGLE_HANDED:
+    case EQUIP_TWO_HANDED:
       sprintfex(out_text + 100, "%s: +%d   %s: %dd%d", pGlobalTXT_LocalizationStrings[LOCSTR_ATTACK],
           (int)inspect_item->GetDamageMod(), pGlobalTXT_LocalizationStrings[53],
           (int)inspect_item->GetDamageDice(), (int)inspect_item->GetDamageRoll()); //"Damage"
@@ -1688,7 +1688,7 @@
     {
       if (item->IsBroken() ||                         // cant harden broken items
           item->uItemID >= ITEM_ARTIFACT_PUCK ||      // cant harden artifacts
-          item->GetItemEquipType() < EQUIP_OFF_HAND ||
+          item->GetItemEquipType() < EQUIP_SINGLE_HANDED ||
           item->GetItemEquipType() > EQUIP_WAND)
       {
         pMouse->RemoveHoldingItem();