diff UI/UICharacter.cpp @ 1358:61010a655c94

a few itemID changed to their enum values + added a few new ones
author Grumpy7
date Sat, 13 Jul 2013 16:52:00 +0200
parents 8c2f689b5f0b
children b691c96d8e06
line wrap: on
line diff
--- a/UI/UICharacter.cpp	Sat Jul 13 16:15:35 2013 +0200
+++ b/UI/UICharacter.cpp	Sat Jul 13 16:52:00 2013 +0200
@@ -2728,7 +2728,7 @@
         pPlayers[uActiveCharacter]->PlaySound(SPEECH_39, 0);
         return;
     }
-    if ( pParty->pPickedItem.uItemID == 604 )
+    if ( pParty->pPickedItem.uItemID == ITEM_WETSUIT )
     {
       pPlayers[uActiveCharacter]->EquipBody((ITEM_EQUIP_TYPE)3);
       WetsuitOn(uActiveCharacter);
@@ -2756,7 +2756,7 @@
 			return;
 		}
         pPlayers[uActiveCharacter]->EquipBody((ITEM_EQUIP_TYPE)v6);
-        if ( pParty->pPickedItem.uItemID == 604 )
+        if ( pParty->pPickedItem.uItemID == ITEM_WETSUIT )
           WetsuitOff(uActiveCharacter);
         return;
       case 0xAu:
@@ -3043,7 +3043,7 @@
     v37 = (int)((char *)pPlayers[uActiveCharacter] + 36 * v36);
     v50 = v37;
     v38 = (ItemGen *)(v37 + 532);
-    v14 = v38->uItemID == 604;
+    v14 = v38->uItemID == ITEM_WETSUIT;
     v52 = pItemsTable->pItems[v38->uItemID].uEquipType;
     if ( v14 )
     {