removed not needed call for pause imuse and non used variable

svn-id: r14271
This commit is contained in:
Paweł Kołodziejski 2004-07-19 09:55:33 +00:00
parent 5ecfa56b5e
commit dc9963ec97
3 changed files with 0 additions and 19 deletions

View File

@ -168,7 +168,6 @@ void Insane::initvars(void) {
_smlayer_room = 0;
_smlayer_room2 = 0;
_isBenCut = 0;
_smush_isPauseImuse = false;
_continueFrame = 0;
_continueFrame1 = 0;
_counter1 = 0;
@ -1131,14 +1130,6 @@ int Insane::smlayer_loadSound(int id, int flag, int phase) {
return resid;
}
void Insane::IMUSE_shutVolume(void) {
_vm->_imuse->pause(true);
}
void Insane::IMUSE_restoreVolume(void) {
_vm->_imuse->pause(false);
}
// smlayer_loadCostume1 && smlayer_loadCostume2
int Insane::smlayer_loadCostume(int id, int phase) {
int resid;
@ -1448,8 +1439,6 @@ void Insane::smush_setupSanFile(const char *filename, int32 offset, int32 contFr
debugC(DEBUG_INSANE, "Insane::smush_setupSanFile(%s, %x, %d)", filename, offset, contFrame);
_player->seekSan(filename, offset, contFrame);
_vm->_imuseDigital->pause(false);
}
}

View File

@ -142,7 +142,6 @@ class Insane {
bool _smush_isSanFileSetup;
bool _isBenCut;
int _smush_smushState;
bool _smush_isPauseImuse;
int _continueFrame;
int _continueFrame1;
int _counter1;
@ -363,8 +362,6 @@ class Insane {
int32 enemy8handler(int32, int32, int32);
int32 enemy8initializer(int32, int32, int32);
int32 enemyBenHandler(int32, int32, int32);
void IMUSE_shutVolume(void);
void IMUSE_restoreVolume(void);
bool smlayer_isSoundRunning(int32 sound);
bool smlayer_startSfx(int32 sound);
bool smlayer_startVoice(int32 sound);

View File

@ -793,17 +793,12 @@ void Insane::procPreRendering(void) {
_val115_ = true;
if (!_keyboardDisable) {
smush_changeState(1);
_smush_isPauseImuse = true;
IMUSE_shutVolume();
_keyboardDisable = 1;
}
} else {
_val115_ = false;
if (_keyboardDisable) {
smush_changeState(0);
_smush_isPauseImuse = false;
IMUSE_restoreVolume();
_keyboardDisable = 0;
}
}