Skip to content

Commit

Permalink
remove usage VAR_SYNC. in scripts used only one time, it's set to 0
Browse files Browse the repository at this point in the history
svn-id: r13472
  • Loading branch information
aquadran committed Apr 5, 2004
1 parent 04fe7f8 commit f44291f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ SCUMM
- Recheck music code
- Add sound mixer procedure for pool method
- Change code to new mixer pool method procedure
- Check if VAR_SYNC if it's set to nonzero value
- Add pool method for FT voc samples from resource
- Implement stuff for fadeParam in JUMP opcode (maybe never implemented)
- Recheck 'next region' code
Expand Down
8 changes: 4 additions & 4 deletions scumm/imuse_digi/dimuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ int32 IMuseDigital::getCurMusicPosInMs() {

int32 IMuseDigital::getCurVoiceLipSyncWidth() {
Common::StackLock lock(_mutex, "IMuseDigital::getCutVoiceLipSyncWidth()");
int32 msPos = getPosInMs(kTalkSoundID) + _vm->VAR(_vm->VAR_SYNC) + 50;
int32 msPos = getPosInMs(kTalkSoundID) + 50;
int32 width = 0, height = 0;

debug(5, "IMuseDigital::getCurVoiceLipSyncWidth(%d)", kTalkSoundID);
Expand All @@ -736,7 +736,7 @@ int32 IMuseDigital::getCurVoiceLipSyncWidth() {

int32 IMuseDigital::getCurVoiceLipSyncHeight() {
Common::StackLock lock(_mutex, "IMuseDigital::getCurVoiceLipSyncHeight()");
int32 msPos = getPosInMs(kTalkSoundID) + _vm->VAR(_vm->VAR_SYNC) + 50;
int32 msPos = getPosInMs(kTalkSoundID) + 50;
int32 width = 0, height = 0;

debug(5, "IMuseDigital::getCurVoiceLipSyncHeight(%d)", kTalkSoundID);
Expand All @@ -754,7 +754,7 @@ int32 IMuseDigital::getCurMusicLipSyncWidth(int syncId) {
}
}

int32 msPos = getPosInMs(soundId) + _vm->VAR(_vm->VAR_SYNC) + 50;
int32 msPos = getPosInMs(soundId) + 50;
int32 width = 0, height = 0;

debug(5, "IMuseDigital::getCurVoiceLipSyncWidth(%d, %d)", soundId, msPos);
Expand All @@ -772,7 +772,7 @@ int32 IMuseDigital::getCurMusicLipSyncHeight(int syncId) {
}
}

int32 msPos = getPosInMs(soundId) + _vm->VAR(_vm->VAR_SYNC) + 50;
int32 msPos = getPosInMs(soundId) + 50;
int32 width = 0, height = 0;

debug(5, "IMuseDigital::getCurVoiceLipSyncHeight(%d, %d)", soundId, msPos);
Expand Down

0 comments on commit f44291f

Please sign in to comment.