aboutsummaryrefslogtreecommitdiff
path: root/saga/scene.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2005-04-24 15:17:38 +0000
committerAndrew Kurushin2005-04-24 15:17:38 +0000
commita909052c8d0f5b87c2a7602f2cc64237bd381343 (patch)
treea8d5a57c1177b684e28d2b34d5bd84ce2c87ce49 /saga/scene.cpp
parentce3cd9b194633e97eabf693f66498335f1f7557d (diff)
downloadscummvm-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.cpp52
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;
}