aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-11 18:17:07 +0000
committerJohannes Schickel2009-08-11 18:17:07 +0000
commitc3cdaa74108377a8fca16905659b7f571ccd410a (patch)
tree72ef75a4fe12cfe5b58757b9e832b483e8f8649c
parent0dcb2e11839e7260d4bbee550851ea2963ac0d1d (diff)
downloadscummvm-rg350-c3cdaa74108377a8fca16905659b7f571ccd410a.tar.gz
scummvm-rg350-c3cdaa74108377a8fca16905659b7f571ccd410a.tar.bz2
scummvm-rg350-c3cdaa74108377a8fca16905659b7f571ccd410a.zip
Fix for bug #2835715 "KYRA: GFX glitch in Amiga version at the bridge", which was caused by featuring restoring of Brandon's position on save load, which the original did not support.
svn-id: r43284
-rw-r--r--engines/kyra/saveload_lok.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/kyra/saveload_lok.cpp b/engines/kyra/saveload_lok.cpp
index 3c92b8f2d4..2a7f300a5d 100644
--- a/engines/kyra/saveload_lok.cpp
+++ b/engines/kyra/saveload_lok.cpp
@@ -184,8 +184,16 @@ Common::Error KyraEngine_LoK::loadGameState(int slot) {
setHandItem(_itemInHand);
_animator->setBrandonAnimSeqSize(3, 48);
redrawInventory(0);
- _brandonPosX = brandonX;
- _brandonPosY = brandonY;
+
+ _brandonPosX = _brandonPosY = -1;
+
+ // Unlike the original we did restore Brandon's position in the scene screen on load.
+ // This appereantly caused graphics gliches in some scenes. For example bug #2835715
+ // ("KYRA: GFX glitch in Amiga version at the bridge") is caused by this feature.
+ // Thus we disable that for now.
+ //_brandonPosX = brandonX;
+ //_brandonPosY = brandonY;
+
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
_animator->animRefreshNPC(0);