diff options
Diffstat (limited to 'src/materials.cpp')
-rw-r--r-- | src/materials.cpp | 2 |
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); } |