aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-17 16:50:06 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:49 +0200
commit0e64406b06961fc988cbb34a8eae4db98c7fb8b6 (patch)
treef4a2384b1db8b856d8d382835564f63a8f430a0c
parent1220b642ebf3c9a28b6eb88160ef63263fa00a44 (diff)
downloadminetest-0e64406b06961fc988cbb34a8eae4db98c7fb8b6.tar.gz
minetest-0e64406b06961fc988cbb34a8eae4db98c7fb8b6.tar.bz2
minetest-0e64406b06961fc988cbb34a8eae4db98c7fb8b6.zip
Fix tool wear
-rw-r--r--src/materials.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/materials.cpp b/src/materials.cpp
index 5c89eafd8..ed0b00925 100644
--- a/src/materials.cpp
+++ b/src/materials.cpp
@@ -76,7 +76,7 @@ DiggingProperties getDiggingProperties(u16 content, ToolDiggingProperties *tp,
durability = 1;
float wear = 1.0 / durability;
- u16 wear_i = wear/65535.;
+ u16 wear_i = 65535.*wear;
return DiggingProperties(true, time, wear_i);
}