diff options
author | Max Horn | 2002-07-28 15:39:44 +0000 |
---|---|---|
committer | Max Horn | 2002-07-28 15:39:44 +0000 |
commit | fe33751dc73da6303003d572aa8d935eba606194 (patch) | |
tree | c55502e15828e5c76ab91abaccbded5005571c9d /gfx.cpp | |
parent | 27466e124741b466e0e0df89d380a21b851cb14e (diff) | |
download | scummvm-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.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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]); } } |