[Scummvm-cvs-logs] CVS: scummvm gfx.cpp,1.106,1.107
Max Horn
fingolfin at users.sourceforge.net
Sun Jul 28 08:40:03 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv25261
Modified Files:
gfx.cpp
Log Message:
make sure to reset the shake position if shaking gets disabled (fixes a bug that occured if you loaded while shaking was on)
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gfx.cpp,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- gfx.cpp 28 Jul 2002 12:43:35 -0000 1.106
+++ gfx.cpp 28 Jul 2002 15:39:44 -0000 1.107
@@ -160,6 +160,9 @@
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]);
}
}
More information about the Scummvm-git-logs
mailing list