From b1b0836d59449311df0d33bad9a80716d73f2ed9 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Mon, 16 Jan 2006 16:38:55 +0000 Subject: IHNM actor walk end fix (TED exits first scene now) svn-id: r20061 --- saga/actor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/saga/actor.cpp b/saga/actor.cpp index fc8a79e927..4b9581cc2e 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -1973,7 +1973,11 @@ bool Actor::actorEndWalk(uint16 actorId, bool recurse) { 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); -- cgit v1.2.3