Right formula

This commit is contained in:
Amazed 2020-02-11 01:10:08 +01:00
parent 6327cbf7d0
commit 248ab65268
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ namespace ShowGiantsForm
float damage = readFloatPointer(0x161D00, 0x278);
float currentHp = maxHp - damage;
float speed = Math.Abs(speedx) + Math.Abs(speedy) + Math.Abs(speedz);
double speed = Math.Sqrt(Math.Pow(speedx, 2) + Math.Pow(speedy, 2) + Math.Pow(speedz, 2));
SpeedLbl.Text = "Speed: " + speed;
hpLbl.Text = "HP: " + currentHp;
} catch (Exception ex)