Don't shake when GUI is displayed.

svn-id: r3995
This commit is contained in:
James Brown 2002-04-18 15:02:57 +00:00
parent 7a9a6f0363
commit 636d975dde
2 changed files with 3 additions and 2 deletions

View file

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