[Scummvm-cvs-logs] SF.net SVN: scummvm: [26182] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Mar 17 21:19:17 CET 2007


Revision: 26182
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26182&view=rev
Author:   peres001
Date:     2007-03-17 13:19:16 -0700 (Sat, 17 Mar 2007)

Log Message:
-----------
split Zone::_oldPosition in two members

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/animation.cpp
    scummvm/trunk/engines/parallaction/location.cpp
    scummvm/trunk/engines/parallaction/parallaction.h
    scummvm/trunk/engines/parallaction/walk.cpp
    scummvm/trunk/engines/parallaction/zone.h

Modified: scummvm/trunk/engines/parallaction/animation.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/animation.cpp	2007-03-17 19:48:48 UTC (rev 26181)
+++ scummvm/trunk/engines/parallaction/animation.cpp	2007-03-17 20:19:16 UTC (rev 26182)
@@ -145,8 +145,8 @@
 		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 @@
 
 		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 @@
 		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;
 		}
 
 	}

Modified: scummvm/trunk/engines/parallaction/location.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/location.cpp	2007-03-17 19:48:48 UTC (rev 26181)
+++ scummvm/trunk/engines/parallaction/location.cpp	2007-03-17 20:19:16 UTC (rev 26182)
@@ -384,8 +384,8 @@
 	_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) {

Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h	2007-03-17 19:48:48 UTC (rev 26181)
+++ scummvm/trunk/engines/parallaction/parallaction.h	2007-03-17 20:19:16 UTC (rev 26182)
@@ -258,8 +258,8 @@
 		_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;

Modified: scummvm/trunk/engines/parallaction/walk.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/walk.cpp	2007-03-17 19:48:48 UTC (rev 26181)
+++ scummvm/trunk/engines/parallaction/walk.cpp	2007-03-17 20:19:16 UTC (rev 26182)
@@ -321,8 +321,8 @@
 
 //	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 @@
 	_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();

Modified: scummvm/trunk/engines/parallaction/zone.h
===================================================================
--- scummvm/trunk/engines/parallaction/zone.h	2007-03-17 19:48:48 UTC (rev 26181)
+++ scummvm/trunk/engines/parallaction/zone.h	2007-03-17 20:19:16 UTC (rev 26182)
@@ -129,7 +129,8 @@
 	int16		_top;
 	int16		_right;
 	int16		_bottom;
-	Point		_oldposition;
+	int16		_oldLeft;
+	int16		_oldTop;
 
 	uint32			_type;
 	uint32			_flags;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list