aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/scene.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2009-09-03 23:06:11 +0000
committerMatthew Hoops2009-09-03 23:06:11 +0000
commit8387508d124b4e43765f75fd3af303cce3712f7f (patch)
tree45c633295cdb0fff348ed6c0abaf7f8c3538568b /engines/teenagent/scene.cpp
parent7923fdbe3f479caa8e7d7f9c6654b500ffea166b (diff)
downloadscummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.tar.gz
scummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.tar.bz2
scummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.zip
Silence gcc warnings.
svn-id: r43931
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r--engines/teenagent/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index 8621ffb638..3679496fcf 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -69,7 +69,7 @@ void Scene::moveTo(const Common::Point & _point, byte orient, bool validate) {
destination = point;
orientation = orient;
position0 = position;
- progress_total = 1 + sqrt((float)position.sqrDist(destination)) / 10;
+ progress_total = 1 + (int)(sqrt((float)position.sqrDist(destination)) / 10);
progress = 0;
}