From 422e88aa20089bcf675335d4e012f8c848c80ac4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 8 Nov 2007 23:35:46 +0000 Subject: Slight fix for off screen path calculation svn-id: r29454 --- engines/saga/scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga/scene.cpp') diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index dbcca5021c..336399eefa 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -553,8 +553,8 @@ bool Scene::offscreenPath(Point &testPoint) { return false; } - point.x = clamp( 0, testPoint.x, _bgMask.w - 1 ); - point.y = clamp( 0, testPoint.y, _bgMask.h - 1 ); + point.x = clamp(0, testPoint.x, _vm->getDisplayWidth() - 1); + point.y = clamp(0, testPoint.y, _bgMask.h - 1); if (point == testPoint) { return false; } -- cgit v1.2.3