Skip to content
Snippets Groups Projects
Commit 4351a3e0 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Fixed small calculation bug.

parent b0584934
No related branches found
No related tags found
Loading
......@@ -98,7 +98,7 @@ namespace BigSock {
if(par.ChargeTime < MinCharge) return false;
// Calculate how much optional charging we did.
par.ChargeTimePercent = Math.Clamp(par.ChargeTime - MinCharge / MaxCharge - MinCharge, 0f, 1f);
par.ChargeTimePercent = Math.Clamp((par.ChargeTime - MinCharge) / (MaxCharge - MinCharge), 0f, 1f);
}
// Check that the ability is cooled down.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment