aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cge2/hero.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index 5e075d8fa2..fdec752ed2 100644
--- a/engines/cge2/hero.cpp
+++ b/engines/cge2/hero.cpp
@@ -395,7 +395,7 @@ void Hero::fun() {
}
int Hero::len(V2D v) {
- return ((v.x * v.x + v.y * v.y) * (v.x * v.x + v.y * v.y));
+ return sqrt(double(v.x * v.x + v.y * v.y));
}
bool Hero::findWay(){