aboutsummaryrefslogtreecommitdiff
path: root/src/tool.cpp
diff options
context:
space:
mode:
authorWuzzy <Wuzzy@disroot.org>2022-06-03 19:47:04 +0000
committerGitHub <noreply@github.com>2022-06-03 21:47:04 +0200
commit6a6b579c5472065dd4ba8edcebe120b4b1c9198e (patch)
treef9cd6f5fd653e9ad394be96ab0ccac7ba82fb26a /src/tool.cpp
parent6d163b72dc777c6dfc62175c7af231cd62e5c2c7 (diff)
downloadminetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.tar.gz
minetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.tar.bz2
minetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.zip
Add helper functions to make tool usable n times (#12047)
Diffstat (limited to 'src/tool.cpp')
-rw-r--r--src/tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool.cpp b/src/tool.cpp
index 075c6b3c5..821ddf07d 100644
--- a/src/tool.cpp
+++ b/src/tool.cpp
@@ -183,7 +183,7 @@ void ToolCapabilities::deserializeJson(std::istream &is)
}
}
-static u32 calculateResultWear(const u32 uses, const u16 initial_wear)
+u32 calculateResultWear(const u32 uses, const u16 initial_wear)
{
if (uses == 0) {
// Trivial case: Infinite uses