aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2009-09-03 23:06:11 +0000
committerMatthew Hoops2009-09-03 23:06:11 +0000
commit8387508d124b4e43765f75fd3af303cce3712f7f (patch)
tree45c633295cdb0fff348ed6c0abaf7f8c3538568b
parent7923fdbe3f479caa8e7d7f9c6654b500ffea166b (diff)
downloadscummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.tar.gz
scummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.tar.bz2
scummvm-rg350-8387508d124b4e43765f75fd3af303cce3712f7f.zip
Silence gcc warnings.
svn-id: r43931
-rw-r--r--engines/teenagent/animation.cpp2
-rw-r--r--engines/teenagent/scene.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/animation.cpp b/engines/teenagent/animation.cpp
index 5a480d91a3..97cf785506 100644
--- a/engines/teenagent/animation.cpp
+++ b/engines/teenagent/animation.cpp
@@ -138,7 +138,7 @@ void Animation::load(Common::SeekableReadStream * s, Type type) {
frames_count = 0;
for(byte i = 0; i < data_size / 3; ++i) {
int idx = i * 3;
- byte unk = s->readByte();
+ /* byte unk = */ s->readByte();
data[idx] = s->readByte();
if (data[idx] == 0)
data[idx] = 1; //fixme: investigate
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;
}