aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kurushin2006-01-16 16:38:55 +0000
committerAndrew Kurushin2006-01-16 16:38:55 +0000
commitb1b0836d59449311df0d33bad9a80716d73f2ed9 (patch)
tree5e64f887d01cd22bcd94deaee29b7956e9e17954
parent9b95dba009bb9d3206d8a5723dbda67a77149960 (diff)
downloadscummvm-rg350-b1b0836d59449311df0d33bad9a80716d73f2ed9.tar.gz
scummvm-rg350-b1b0836d59449311df0d33bad9a80716d73f2ed9.tar.bz2
scummvm-rg350-b1b0836d59449311df0d33bad9a80716d73f2ed9.zip
IHNM actor walk end fix (TED exits first scene now)
svn-id: r20061
-rw-r--r--saga/actor.cpp6
1 files changed, 5 insertions, 1 deletions
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);