summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-02-28 19:45:23 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 11:28:12 +0200
commit562ac3bce9fae076562bd2e92e7d330c296ac1b0 (patch)
tree4b9421f1fd0a22a69cfa6320cc30f41f0f68af8a /src/inventory.h
parentf21291211caaaa22ee5673adf46615dd46a36285 (diff)
downloadminetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.gz
minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.tar.bz2
minetest-562ac3bce9fae076562bd2e92e7d330c296ac1b0.zip
Digging time groups WIP
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/inventory.h b/src/inventory.h
index fcac5f647..e27da15d5 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -28,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "debug.h"
#include "itemdef.h"
-struct ToolDiggingProperties;
+struct ToolCapabilities;
struct ItemStack
{
@@ -107,15 +107,15 @@ struct ItemStack
}
// Get tool digging properties, or those of the hand if not a tool
- const ToolDiggingProperties& getToolDiggingProperties(
+ const ToolCapabilities& getToolCapabilities(
IItemDefManager *itemdef) const
{
- ToolDiggingProperties *prop;
- prop = itemdef->get(name).tool_digging_properties;
- if(prop == NULL)
- prop = itemdef->get("").tool_digging_properties;
- assert(prop != NULL);
- return *prop;
+ ToolCapabilities *cap;
+ cap = itemdef->get(name).tool_capabilities;
+ if(cap == NULL)
+ cap = itemdef->get("").tool_capabilities;
+ assert(cap != NULL);
+ return *cap;
}
// Wear out (only tools)