aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/mult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/mult.cpp')
-rw-r--r--engines/gob/mult.cpp69
1 files changed, 0 insertions, 69 deletions
diff --git a/engines/gob/mult.cpp b/engines/gob/mult.cpp
index 96bffa80d1..25e8a15079 100644
--- a/engines/gob/mult.cpp
+++ b/engines/gob/mult.cpp
@@ -416,75 +416,6 @@ void Mult::interGetObjAnimSize(void) {
WRITE_VAR_OFFSET(_vm->_parse->parseVarIndex(), _vm->_scenery->_toRedrawBottom);
}
-void Mult::interInitMult(void) {
- int16 oldAnimHeight;
- int16 oldAnimWidth;
- int16 oldObjCount;
- int16 i;
- int16 posXVar;
- int16 posYVar;
- int16 animDataVar;
-
- oldAnimWidth = _vm->_anim->_areaWidth;
- oldAnimHeight = _vm->_anim->_areaHeight;
- oldObjCount = _objCount;
-
- _vm->_anim->_areaLeft = _vm->_inter->load16();
- _vm->_anim->_areaTop = _vm->_inter->load16();
- _vm->_anim->_areaWidth = _vm->_inter->load16();
- _vm->_anim->_areaHeight = _vm->_inter->load16();
- _objCount = _vm->_inter->load16();
- posXVar = _vm->_parse->parseVarIndex();
- posYVar = _vm->_parse->parseVarIndex();
- animDataVar = _vm->_parse->parseVarIndex();
-
- if (_objects == 0) {
- _renderData = new int16[_objCount * 9];
- _objects = new Mult_Object[_objCount];
-
- for (i = 0; i < _objCount; i++) {
- _objects[i].pPosX = (int32 *)(_vm->_global->_inter_variables + i * 4 + (posXVar / 4) * 4);
- _objects[i].pPosY = (int32 *)(_vm->_global->_inter_variables + i * 4 + (posYVar / 4) * 4);
- _objects[i].pAnimData =
- (Mult_AnimData *) (_vm->_global->_inter_variables + animDataVar +
- i * 4 * _vm->_global->_inter_animDataSize);
-
- _objects[i].pAnimData->isStatic = 1;
- _objects[i].tick = 0;
- _objects[i].lastLeft = -1;
- _objects[i].lastRight = -1;
- _objects[i].lastTop = -1;
- _objects[i].lastBottom = -1;
- }
- } else if (oldObjCount != _objCount) {
- error("interInitMult: Object count changed, but storage didn't (old count = %d, new count = %d)",
- oldObjCount, _objCount);
- }
-
- if (_vm->_anim->_animSurf != 0 &&
- (oldAnimWidth != _vm->_anim->_areaWidth
- || oldAnimHeight != _vm->_anim->_areaHeight)) {
- _vm->_video->freeSurfDesc(_vm->_anim->_animSurf);
- _vm->_anim->_animSurf = 0;
- }
-
- if (_vm->_anim->_animSurf == 0) {
- _vm->_anim->_animSurf = _vm->_video->initSurfDesc(_vm->_global->_videoMode,
- _vm->_anim->_areaWidth, _vm->_anim->_areaHeight, 0);
-
- _vm->_draw->_spritesArray[22] = _vm->_anim->_animSurf;
- }
-
- _vm->_video->drawSprite(_vm->_draw->_backSurface, _vm->_anim->_animSurf,
- _vm->_anim->_areaLeft, _vm->_anim->_areaTop,
- _vm->_anim->_areaLeft + _vm->_anim->_areaWidth - 1,
- _vm->_anim->_areaTop + _vm->_anim->_areaHeight - 1, 0, 0, 0);
-
- debug(4, "interInitMult: x = %d, y = %d, w = %d, h = %d",
- _vm->_anim->_areaLeft, _vm->_anim->_areaTop, _vm->_anim->_areaWidth, _vm->_anim->_areaHeight);
- debug(4, " _objCount = %d, animation data size = %d", _objCount, _vm->_global->_inter_animDataSize);
-}
-
void Mult::freeMult(void) {
if (_vm->_anim->_animSurf != 0)
_vm->_video->freeSurfDesc(_vm->_anim->_animSurf);