aboutsummaryrefslogtreecommitdiff
path: root/saga/scene.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-24 15:35:03 +0000
committerTorbjörn Andersson2005-04-24 15:35:03 +0000
commit59f6002b03c6d46a9f576b2f3e796c0665c1dc56 (patch)
tree7538326e1947fa34d295905cad430a759f086120 /saga/scene.cpp
parenta909052c8d0f5b87c2a7602f2cc64237bd381343 (diff)
downloadscummvm-rg350-59f6002b03c6d46a9f576b2f3e796c0665c1dc56.tar.gz
scummvm-rg350-59f6002b03c6d46a9f576b2f3e796c0665c1dc56.tar.bz2
scummvm-rg350-59f6002b03c6d46a9f576b2f3e796c0665c1dc56.zip
Fixed warning. (Unused variables.)
svn-id: r17790
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r--saga/scene.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp
index 166195827b..a9c2e33f86 100644
--- a/saga/scene.cpp
+++ b/saga/scene.cpp
@@ -384,24 +384,22 @@ bool Scene::canWalk(const Point &testPoint) {
}
bool Scene::offscreenPath(Point &testPoint) {
- Point first;
- Point second;
- Point third;
+ Point point;
if (!_bgMask.loaded) {
return false;
}
- first.x = clamp( 0, testPoint.x, _bgMask.w - 1 );
- first.y = clamp( 0, testPoint.y, _bgMask.h - 1 );
- if (first == testPoint) {
+ point.x = clamp( 0, testPoint.x, _bgMask.w - 1 );
+ point.y = clamp( 0, testPoint.y, _bgMask.h - 1 );
+ if (point == testPoint) {
return false;
}
- if (first.y >= _bgMask.h - 1) {
- first.y = _bgMask.h - 2;
+ if (point.y >= _bgMask.h - 1) {
+ point.y = _bgMask.h - 2;
}
- testPoint = first;
+ testPoint = point;
return true;
}