mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
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:
parent
27466e1247
commit
fe33751dc7
3
gfx.cpp
3
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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user