Fix tool wear

This commit is contained in:
Perttu Ahola 2011-11-17 16:50:06 +02:00
parent 1220b642eb
commit 0e64406b06
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}