From b74edc093768b2885dc2a5bd40d748b5baa64605 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 2 Jul 2015 21:02:05 +0300 Subject: SHERLOCK: SS: Don't multiply the walk coordinates twice Fixes a regression in Serrated Scalpel from commit dbf82dd92a --- engines/sherlock/objects.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sherlock/objects.cpp') diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index a42fce5ea9..12f5a2f90d 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -1446,8 +1446,8 @@ void CAnim::load(Common::SeekableReadStream &s, bool isRoseTattoo, uint32 dataOf ADJUST_COORD(_goto[1]); } else { // For Serrated Scalpel, adjust the loaded co-ordinates - _goto[0].x = _goto[0].x * FIXED_INT_MULTIPLIER / 100; - _goto[0].y = _goto[0].y * FIXED_INT_MULTIPLIER / 100; + _goto[0].x = _goto[0].x / 100; + _goto[0].y = _goto[0].y / 100; } _teleport[0].x = s.readSint16LE(); @@ -1463,8 +1463,8 @@ void CAnim::load(Common::SeekableReadStream &s, bool isRoseTattoo, uint32 dataOf ADJUST_COORD(_teleport[1]); } else { // For Serrated Scalpel, adjust the loaded co-ordinates - _teleport[0].x = _teleport[0].x * FIXED_INT_MULTIPLIER / 100; - _teleport[0].y = _teleport[0].y * FIXED_INT_MULTIPLIER / 100; + _teleport[0].x = _teleport[0].x / 100; + _teleport[0].y = _teleport[0].y / 100; } // Save offset of data, which is actually inside another table inside the room data file -- cgit v1.2.3