aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-03-17 20:19:16 +0000
committerNicola Mettifogo2007-03-17 20:19:16 +0000
commit54201ddaa9bf1ec8bda447f9a76382a238a72617 (patch)
tree483d21189ee746fa3ed266c56d813108f4f38623 /engines
parentd7f31cf55d54b7f74fb5e8ed9ccdb3d8ddbacd6d (diff)
downloadscummvm-rg350-54201ddaa9bf1ec8bda447f9a76382a238a72617.tar.gz
scummvm-rg350-54201ddaa9bf1ec8bda447f9a76382a238a72617.tar.bz2
scummvm-rg350-54201ddaa9bf1ec8bda447f9a76382a238a72617.zip
split Zone::_oldPosition in two members
svn-id: r26182
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/animation.cpp12
-rw-r--r--engines/parallaction/location.cpp4
-rw-r--r--engines/parallaction/parallaction.h4
-rw-r--r--engines/parallaction/walk.cpp6
-rw-r--r--engines/parallaction/zone.h3
5 files changed, 15 insertions, 14 deletions
diff --git a/engines/parallaction/animation.cpp b/engines/parallaction/animation.cpp
index a383e57b7d..89e9bd1ea4 100644
--- a/engines/parallaction/animation.cpp
+++ b/engines/parallaction/animation.cpp
@@ -145,8 +145,8 @@ Animation *Parallaction::parseAnimation(Script& script, Node *list, char *name)
fillBuffers(script, true);
}
- vD0->_zone._oldposition._x = -1000;
- vD0->_zone._oldposition._y = -1000;
+ vD0->_zone._oldLeft = -1000;
+ vD0->_zone._oldTop = -1000;
vD0->_zone._flags |= 0x1000000;
@@ -208,7 +208,7 @@ void jobDisplayAnimations(void *parm, Job *j) {
if (((v18->_zone._flags & kFlagsActive) == 0) && (v18->_zone._flags & kFlagsRemove)) {
v18->_zone._flags &= ~kFlagsRemove;
- v18->_zone._oldposition._x = -1000;
+ v18->_zone._oldLeft = -1000;
}
if ((v18->_zone._flags & kFlagsActive) && (v18->_zone._flags & kFlagsRemove)) {
@@ -234,12 +234,12 @@ void jobEraseAnimations(void *arg_0, Job *j) {
if (((a->_zone._flags & kFlagsActive) == 0) && ((a->_zone._flags & kFlagsRemove) == 0)) continue;
Common::Rect r(a->_cnv._width, a->_cnv._height);
- r.moveTo(a->_zone._oldposition._x, a->_zone._oldposition._y);
+ r.moveTo(a->_zone._oldLeft, a->_zone._oldTop);
_vm->_gfx->restoreBackground(r);
if (arg_0) {
- a->_zone._oldposition._x = a->_zone._left;
- a->_zone._oldposition._y = a->_zone._top;
+ a->_zone._oldLeft = a->_zone._left;
+ a->_zone._oldTop = a->_zone._top;
}
}
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp
index d285a99b68..4f37f442d7 100644
--- a/engines/parallaction/location.cpp
+++ b/engines/parallaction/location.cpp
@@ -384,8 +384,8 @@ void Parallaction::changeLocation(char *location) {
_gfx->copyScreen(Gfx::kBitBack, Gfx::kBit2);
debugC(1, kDebugLocation, "changeLocation: new location '%s' parsed", _saveData1);
- _vm->_char._ani._zone._oldposition._x = -1000;
- _vm->_char._ani._zone._oldposition._y = -1000;
+ _vm->_char._ani._zone._oldLeft = -1000;
+ _vm->_char._ani._zone._oldTop = -1000;
_vm->_char._ani.field_50 = 0;
if (_location._startPosition._x != -1000) {
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h
index e6e1bf92c2..d0fe3cc4c5 100644
--- a/engines/parallaction/parallaction.h
+++ b/engines/parallaction/parallaction.h
@@ -258,8 +258,8 @@ struct Character {
_ani._zone._left = 150;
_ani._zone._top = 100;
_ani._z = 10;
- _ani._zone._oldposition._x = -1000;
- _ani._zone._oldposition._y = -1000;
+ _ani._zone._oldLeft = -1000;
+ _ani._zone._oldTop = -1000;
_ani._frame = 0;
_ani._zone._flags = kFlagsActive | kFlagsNoName;
_ani._zone._type = kZoneYou;
diff --git a/engines/parallaction/walk.cpp b/engines/parallaction/walk.cpp
index 4418372f68..9e48dcb628 100644
--- a/engines/parallaction/walk.cpp
+++ b/engines/parallaction/walk.cpp
@@ -321,8 +321,8 @@ void jobWalk(void *parm, Job *j) {
// debugC(1, kDebugWalk, "jobWalk to (%i, %i)", node->_x + _vm->_char._ani._cnv._width / 2, node->_y + _vm->_char._ani._cnv._height);
- _vm->_char._ani._zone._oldposition._x = _si;
- _vm->_char._ani._zone._oldposition._y = _di;
+ _vm->_char._ani._zone._oldLeft = _si;
+ _vm->_char._ani._zone._oldTop = _di;
if ((node->_x == _si) && (node->_y == _di)) {
if (node->_next == NULL) {
@@ -415,7 +415,7 @@ void jobWalk(void *parm, Job *j) {
_vm->_char._ani._zone._left = _si;
_vm->_char._ani._zone._top = _di;
- if ((_si == _vm->_char._ani._zone._oldposition._x) && (_di == _vm->_char._ani._zone._oldposition._y)) {
+ if ((_si == _vm->_char._ani._zone._oldLeft) && (_di == _vm->_char._ani._zone._oldTop)) {
j->_finished = 1;
checkDoor();
diff --git a/engines/parallaction/zone.h b/engines/parallaction/zone.h
index 8a32f1f5f0..b5a73945f8 100644
--- a/engines/parallaction/zone.h
+++ b/engines/parallaction/zone.h
@@ -129,7 +129,8 @@ struct Zone : public Node {
int16 _top;
int16 _right;
int16 _bottom;
- Point _oldposition;
+ int16 _oldLeft;
+ int16 _oldTop;
uint32 _type;
uint32 _flags;