no shaking while NewGUI is showing

svn-id: r4617
This commit is contained in:
Max Horn 2002-07-22 13:40:03 +00:00
parent 75b48a04f6
commit 150ed1b8c6

View file

@ -23,6 +23,7 @@
#include "scumm.h"
#include "actor.h"
#include "gui.h"
#include "newgui.h"
#include "resource.h"
void Scumm::getGraphicsPerformance()
@ -156,7 +157,7 @@ void Scumm::drawDirtyScreenParts()
}
/* Handle shaking */
if (_shakeEnabled && !_gui->isActive()) {
if (_shakeEnabled && !_gui->isActive() && !_newgui->isActive()) {
_shakeFrame = (_shakeFrame + 1) & (NUM_SHAKE_POSITIONS - 1);
_system->set_shake_pos(shake_positions[_shakeFrame]);
}