diff options
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp index e92b818f85..2ded6fa9ee 100644 --- a/sword1/sound.cpp +++ b/sword1/sound.cpp @@ -106,7 +106,7 @@ void SwordSound::fnStopFx(int32 fxNo) { bool SwordSound::amISpeaking(void) { _waveVolPos++; - return _waveVolume[_waveVolPos - 1]; + return _waveVolume[_waveVolPos - 1]; } bool SwordSound::speechFinished(void) { @@ -226,7 +226,7 @@ void SwordSound::calcWaveVolume(int16 *data, uint32 length) { int32 average = 0; for (uint32 cnt = 0; cnt < 918; cnt++) average += blkPos[cnt]; - average /= 918; + average /= 918; uint32 diff = 0; for (uint32 cnt = 0; cnt < 918; cnt++) { int16 smpDiff = *blkPos - average; |