diff --git a/Source/itemdat.h b/Source/itemdat.h index c4d984d53..e416490bf 100644 --- a/Source/itemdat.h +++ b/Source/itemdat.h @@ -182,7 +182,6 @@ typedef enum item_type { ITYPE_GOLD, ITYPE_RING, ITYPE_AMULET, - ITYPE_FOOD, /* used in demo */ ITYPE_NONE = -1, } item_type; diff --git a/Source/items.cpp b/Source/items.cpp index fd8e20550..2391c9fb9 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2535,8 +2535,6 @@ int RndUItem(int m) okflag = FALSE; if (AllItemsList[i].itype == ITYPE_GOLD) okflag = FALSE; - if (AllItemsList[i].itype == ITYPE_FOOD) - okflag = FALSE; if (AllItemsList[i].iMiscId == IMISC_BOOK) okflag = TRUE; if (AllItemsList[i].iSpell == SPL_RESURRECT && !gbIsMultiplayer) @@ -4443,8 +4441,6 @@ BOOL SmithItemOk(int i) rv = FALSE; if (AllItemsList[i].itype == ITYPE_GOLD) rv = FALSE; - if (AllItemsList[i].itype == ITYPE_FOOD) - rv = FALSE; if (AllItemsList[i].itype == ITYPE_STAFF && (!gbIsHellfire || AllItemsList[i].iSpell)) rv = FALSE; if (AllItemsList[i].itype == ITYPE_RING) @@ -4558,8 +4554,6 @@ BOOL PremiumItemOk(int i) rv = FALSE; if (AllItemsList[i].itype == ITYPE_GOLD) rv = FALSE; - if (AllItemsList[i].itype == ITYPE_FOOD) - rv = FALSE; if (!gbIsHellfire && AllItemsList[i].itype == ITYPE_STAFF) rv = FALSE; diff --git a/Source/stores.cpp b/Source/stores.cpp index 19d557c8e..2db8e32b9 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -434,8 +434,6 @@ BOOL SmithSellOk(int i) return FALSE; if (pI->_itype == ITYPE_GOLD) return FALSE; - if (pI->_itype == ITYPE_FOOD) - return FALSE; if (pI->_itype == ITYPE_STAFF && (!gbIsHellfire || pI->_iSpell != SPL_NULL)) return FALSE; if (pI->_iClass == ICLASS_QUEST) @@ -564,8 +562,6 @@ BOOL SmithRepairOk(int i) return FALSE; if (plr[myplr].InvList[i]._itype == ITYPE_GOLD) return FALSE; - if (plr[myplr].InvList[i]._itype == ITYPE_FOOD) - return FALSE; if (plr[myplr].InvList[i]._iDurability == plr[myplr].InvList[i]._iMaxDur) return FALSE;