From 6260c33666a09db8ca4bb72419dc0560d584745f Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 8 Jun 2015 20:31:16 +0200 Subject: SHERLOCK: Fix checkSprite() regression from FIXED_INT_MULTIPLIER I think these 100 should be FIXED_INT_MULTIPLIER, which was changed to 1000 recently to accomodate for The Case of the Rose Tattoo. Bizarrely, the noticeable regression from this was that the first few paragraphs of the journal (referencing events in the intro) were not recorded. I trust someone will let me know if I got it wrong. --- engines/sherlock/objects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp index d27cbeda2e..ce0480a7b2 100644 --- a/engines/sherlock/objects.cpp +++ b/engines/sherlock/objects.cpp @@ -320,8 +320,8 @@ void Sprite::checkSprite() { if (!talk._talkCounter && _type == CHARACTER) { pt = _walkCount ? _position + _delta : _position; - pt.x /= 100; - pt.y /= 100; + pt.x /= FIXED_INT_MULTIPLIER; + pt.y /= FIXED_INT_MULTIPLIER; for (uint idx = 0; idx < scene._bgShapes.size() && !talk._talkToAbort; ++idx) { Object &obj = scene._bgShapes[idx]; -- cgit v1.2.3