aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/mult.cpp
diff options
context:
space:
mode:
authorSven Hesse2007-02-05 14:08:50 +0000
committerSven Hesse2007-02-05 14:08:50 +0000
commit7f26069f6924b0d450b6592755ba6ab40d507a9c (patch)
tree856d6bfc6b2d7fdd71f74d215b21d814959a8276 /engines/gob/mult.cpp
parent710105d1c1ab5ec00477dc098ac9bb8f09c6b13c (diff)
downloadscummvm-rg350-7f26069f6924b0d450b6592755ba6ab40d507a9c.tar.gz
scummvm-rg350-7f26069f6924b0d450b6592755ba6ab40d507a9c.tar.bz2
scummvm-rg350-7f26069f6924b0d450b6592755ba6ab40d507a9c.zip
- Moved struct Mult_Data from Mult_v2 to Mult and merged Mult::_multData, Mult::_multData2 and some of the loose variables in Mult
- Added some missing MD5s/game versions (#1652352) svn-id: r25393
Diffstat (limited to 'engines/gob/mult.cpp')
-rw-r--r--engines/gob/mult.cpp39
1 files changed, 4 insertions, 35 deletions
diff --git a/engines/gob/mult.cpp b/engines/gob/mult.cpp
index 710fa7bfc5..b3650e423d 100644
--- a/engines/gob/mult.cpp
+++ b/engines/gob/mult.cpp
@@ -41,16 +41,17 @@
namespace Gob {
Mult::Mult(GobEngine *vm) : _vm(vm) {
+ int i;
+
+ _multData = 0;
_objects = 0;
_renderData = 0;
_renderData2 = 0;
_objCount = 0;
_underAnimSurf = 0;
- _multData = 0;
_frame = 0;
_doPalSubst = 0;
_counter = 0;
- _frameRate = 0;
_animArrayX = 0;
_animArrayY = 0;
@@ -58,28 +59,7 @@ Mult::Mult(GobEngine *vm) : _vm(vm) {
_index = 0;
- _staticKeysCount = 0;
- _staticKeys = 0;
- int i;
- for (i = 0; i < 10; i++)
- _staticIndices[i] = 0;
-
- for (i = 0; i < 4; i++) {
- _animKeys[i] = 0;
- _animKeysCount[i] = 0;
- }
- _animLayer = 0;
- for (i = 0; i < 10; i++)
- _animIndices[i] = 0;
-
- _textKeysCount = 0;
- _textKeys = 0;
-
- _frameStart = 0;
-
_palKeyIndex = 0;
- _palKeysCount = 0;
- _palKeys = 0;
_oldPalette = 0;
_palAnimKey = 0;
for (i = 0; i < 256; i++) {
@@ -94,23 +74,12 @@ Mult::Mult(GobEngine *vm) : _vm(vm) {
_palAnimBlue[i] = 0;
}
- _palFadeKeys = 0;
- _palFadeKeysCount = 0;
_palFadingRed = 0;
_palFadingGreen = 0;
_palFadingBlue = 0;
_animDataAllocated = 0;
- for (i = 0; i < 10; i++) {
- _staticLoaded[i] = 0;
- _animLoaded[i] = 0;
- }
- _sndSlotsCount = 0;
-
- _sndKeysCount = 0;
- _sndKeys = 0;
-
for (i = 0; i < 5; i++)
for (int j = 0; j < 16; j++) {
_fadePal[i][j].red = 0;
@@ -159,7 +128,7 @@ void Mult::zeroMultData(void) {
}
void Mult::checkFreeMult(void) {
- if (_multData != 0)
+ if (_multData)
freeMultKeys();
}