aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-28 15:39:44 +0000
committerMax Horn2002-07-28 15:39:44 +0000
commitfe33751dc73da6303003d572aa8d935eba606194 (patch)
treec55502e15828e5c76ab91abaccbded5005571c9d /gfx.cpp
parent27466e124741b466e0e0df89d380a21b851cb14e (diff)
downloadscummvm-rg350-fe33751dc73da6303003d572aa8d935eba606194.tar.gz
scummvm-rg350-fe33751dc73da6303003d572aa8d935eba606194.tar.bz2
scummvm-rg350-fe33751dc73da6303003d572aa8d935eba606194.zip
make sure to reset the shake position if shaking gets disabled (fixes a bug that occured if you loaded while shaking was on)
svn-id: r4673
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx.cpp b/gfx.cpp
index 23d649d426..8b7897f060 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -160,6 +160,9 @@ void Scumm::drawDirtyScreenParts()
if (_shakeEnabled && !_gui->isActive() && !_newgui->isActive()) {
_shakeFrame = (_shakeFrame + 1) & (NUM_SHAKE_POSITIONS - 1);
_system->set_shake_pos(shake_positions[_shakeFrame]);
+ } else if (!_shakeEnabled &&_shakeFrame != 0) {
+ _shakeFrame = 0;
+ _system->set_shake_pos(shake_positions[_shakeFrame]);
}
}