Don't shake when GUI is displayed.
svn-id: r3995
This commit is contained in:
parent
7a9a6f0363
commit
636d975dde
2 changed files with 3 additions and 2 deletions
3
gfx.cpp
3
gfx.cpp
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#include "scumm.h"
|
||||
#include "gui.h"
|
||||
|
||||
void Scumm::getGraphicsPerformance()
|
||||
{
|
||||
|
@ -151,7 +152,7 @@ void Scumm::drawDirtyScreenParts()
|
|||
}
|
||||
|
||||
/* Handle shaking */
|
||||
if (_shakeEnabled) {
|
||||
if (_shakeEnabled && !_gui->_active) {
|
||||
_shakeFrame = (_shakeFrame + 1) & (NUM_SHAKE_POSITIONS - 1);
|
||||
_system->set_shake_pos(shake_positions[_shakeFrame]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue