[Scummvm-cvs-logs] CVS: scummvm/saga actor.cpp,1.210,1.211

Andrew Kurushin h00ligan at users.sourceforge.net
Mon Jan 16 08:40:00 CET 2006


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5200

Modified Files:
	actor.cpp 
Log Message:
IHNM actor walk end fix (TED exits first scene now)

Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actor.cpp,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -d -r1.210 -r1.211
--- actor.cpp	13 Jan 2006 20:20:00 -0000	1.210
+++ actor.cpp	16 Jan 2006 16:38:55 -0000	1.211
@@ -1973,7 +1973,11 @@
 	if (actor == _protagonist) {
 		_vm->_script->wakeUpActorThread(kWaitTypeWalk, actor);
 		if (_vm->_script->_pendingVerb == _vm->_script->getVerbType(kVerbWalkTo)) {
-			actor->_location.toScreenPointUV(testPoint);
+			if (_vm->getGameType() == GType_ITE)
+				actor->_location.toScreenPointUV(testPoint); // it's wrong calculation, but it is used in ITE
+			else
+				actor->_location.toScreenPointXY(testPoint);
+				
 			hitZoneIndex = _vm->_scene->_actionMap->hitTest(testPoint);
 			if (hitZoneIndex != -1) {
 				hitZone = _vm->_scene->_actionMap->getHitZone(hitZoneIndex);





More information about the Scummvm-git-logs mailing list