[Scummvm-cvs-logs] SF.net SVN: scummvm: [22132] scummvm/trunk/engines/simon/animation.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sun Apr 23 23:03:02 CEST 2006
Revision: 22132
Author: kirben
Date: 2006-04-23 23:01:51 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22132&view=rev
Log Message:
-----------
Initialize all variables in MoviePlayer class
Modified Paths:
--------------
scummvm/trunk/engines/simon/animation.cpp
Modified: scummvm/trunk/engines/simon/animation.cpp
===================================================================
--- scummvm/trunk/engines/simon/animation.cpp 2006-04-24 04:43:37 UTC (rev 22131)
+++ scummvm/trunk/engines/simon/animation.cpp 2006-04-24 06:01:51 UTC (rev 22132)
@@ -41,6 +41,27 @@
MoviePlayer::MoviePlayer(SimonEngine *vm, Audio::Mixer *mixer)
: _vm(vm), _mixer(mixer) {
+ _frameNum = 0;
+ _frameSkipped = 0;
+
+ _playing = false;
+ _leftButtonDown = false;
+ _rightButtonDown = false;
+
+ _frameBuffer1 = 0;
+ _frameBuffer2 = 0;
+
+ _width = 0;
+ _height = 0;
+
+ _frameSize = 0;
+ _framesCount = 0;
+ _frameNum = 0;
+ _frameRate = 0;
+ _frameTicks = 0;
+ _frameSkipped = 0;
+
+ _ticks = 0;
}
MoviePlayer::~MoviePlayer() {
@@ -83,6 +104,9 @@
error("error allocating frame tables, size %d\n", _frameSize);
}
+ _frameNum = 0;
+ _frameSkipped = 0;
+
return true;
}
@@ -100,8 +124,6 @@
_mixer->stopAll();
- _frameNum = 0;
-
_leftButtonDown = false;
_rightButtonDown = false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list