diff options
author | Andrew Kurushin | 2005-04-24 15:17:38 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-04-24 15:17:38 +0000 |
commit | a909052c8d0f5b87c2a7602f2cc64237bd381343 (patch) | |
tree | a8d5a57c1177b684e28d2b34d5bd84ce2c87ce49 /saga/scene.cpp | |
parent | ce3cd9b194633e97eabf693f66498335f1f7557d (diff) | |
download | scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.tar.gz scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.tar.bz2 scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.zip |
fixed object frawing
implemented sfGetObjImage, sfSetObjImage, sfSetObjName
svn-id: r17789
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index e92df32030..166195827b 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -387,7 +387,6 @@ bool Scene::offscreenPath(Point &testPoint) { Point first; Point second; Point third; - int maskType; if (!_bgMask.loaded) { return false; @@ -404,57 +403,6 @@ bool Scene::offscreenPath(Point &testPoint) { } testPoint = first; - if (testPoint.y != first.y) { - second.x = third.x = testPoint.x; - second.y = third.y = first.y; - for (;; second.x--, third.x++ ) { - if (second.x > 1) { - maskType = getBGMaskType(second); - if (getDoorState(maskType) == 0) { - testPoint.x = second.x - 1; - break; - } - } else { - if (third.x >= _bgMask.w) { - return false; - } - } - - if (third.x < _bgMask.w) { - maskType = getBGMaskType(third); - if (getDoorState(maskType) == 0) { - testPoint.x = third.x + 1; - break; - } - } - } - } - - if (testPoint.x != first.x) { - second.y = third.y = testPoint.y; - second.x = third.x = first.x; - for (;; second.y--, third.y++ ) { - if (second.y > 1) { - maskType = getBGMaskType(second); - if (getDoorState(maskType) == 0) { - testPoint.y = second.y - 1; - break; - } - } else { - if (third.y >= _bgMask.h) { - return false; - } - } - - if (third.y < _bgMask.h) { - maskType = getBGMaskType(third); - if (getDoorState(maskType) == 0) { - testPoint.y = third.y + 1; - break; - } - } - } - } return true; } |