summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-24 09:20:16 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-24 09:20:16 +0200
commit3b429a9bdff601a4d36e9ae715f54f35e0569875 (patch)
tree6f6ce154f26a86248f9a2889f2325159ff340a5e /source
parentFixed linking error from rev 1498 (diff)
downloadcuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar.gz
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar.bz2
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar.lz
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar.xz
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.tar.zst
cuberite-3b429a9bdff601a4d36e9ae715f54f35e0569875.zip
Diffstat (limited to '')
-rw-r--r--source/Defines.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Defines.h b/source/Defines.h
index e92568d78..8b3c402c8 100644
--- a/source/Defines.h
+++ b/source/Defines.h
@@ -496,6 +496,18 @@ namespace ItemCategory
(a_ItemType == E_ITEM_DIAMOND_BOOTS)
);
}
+
+
+
+ inline bool IsArmor(short a_ItemType)
+ {
+ return (
+ IsHelmet(a_ItemType) ||
+ IsChestPlate(a_ItemType) ||
+ IsLeggings(a_ItemType) ||
+ IsBoots(a_ItemType)
+ );
+ }
}
// tolua_end