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
This commit is contained in:
Max Horn 2002-07-28 15:39:44 +00:00
parent 27466e1247
commit fe33751dc7

View File

@ -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]);
}
}