diff options
author | Max Horn | 2010-01-11 10:17:55 +0000 |
---|---|---|
committer | Max Horn | 2010-01-11 10:17:55 +0000 |
commit | 590481b12daf2287b37fdae757f8cca349912754 (patch) | |
tree | 9349d173d37353c567f9f5f971e861e91dd59b17 /engines/made | |
parent | 87cdc86580625abc12bbd4fde71764e4fd88a357 (diff) | |
download | scummvm-rg350-590481b12daf2287b37fdae757f8cca349912754.tar.gz scummvm-rg350-590481b12daf2287b37fdae757f8cca349912754.tar.bz2 scummvm-rg350-590481b12daf2287b37fdae757f8cca349912754.zip |
Improve support for negative Timestamps, and add + and - operators
svn-id: r47244
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/scriptfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index 88bd440c51..e17b285b68 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -653,7 +653,7 @@ int16 ScriptFunctions::sfGetSoundEnergy(int16 argc, int16 *argv) { while (_vm->_soundEnergyIndex < _vm->_soundEnergyArray->size()) { SoundEnergyItem *soundEnergyItem = &(*_vm->_soundEnergyArray)[_vm->_soundEnergyIndex]; const Audio::Timestamp ts = _vm->_mixer->getElapsedTime(_audioStreamHandle); - if (ts.convertToFramerate(_vm->_soundRate).totalNumberOfFrames() < soundEnergyItem->position) { + if (ts.convertToFramerate(_vm->_soundRate).totalNumberOfFrames() < (int)soundEnergyItem->position) { result = soundEnergyItem->energy; break; } |