diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-08 15:22:49 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-08 15:22:49 +0200 |
commit | 95e9fe76937e082df5336f79384ad6dc15883a40 (patch) | |
tree | 66c3f236d59f5c96974d07cd03db6f0e687e38e3 /src/audio/AudioLogic.cpp | |
parent | miamification of some audio structs (diff) | |
download | re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar.gz re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar.bz2 re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar.lz re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar.xz re3-95e9fe76937e082df5336f79384ad6dc15883a40.tar.zst re3-95e9fe76937e082df5336f79384ad6dc15883a40.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioLogic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp index a7d16dc4..68f597bc 100644 --- a/src/audio/AudioLogic.cpp +++ b/src/audio/AudioLogic.cpp @@ -5700,7 +5700,7 @@ cAudioManager::IsMissionAudioSamplePlaying(uint8 slot) const } else { static int32 cPretendFrame[MISSION_AUDIO_SLOTS] = { 1, 1 }; - return (cPretendFrame[MISSION_AUDIO_SLOTS]++ % 64) != 0; + return (cPretendFrame[slot]++ % 64) != 0; } } @@ -5716,7 +5716,7 @@ cAudioManager::IsMissionAudioSampleFinished(uint8 slot) static int32 cPretendFrame[MISSION_AUDIO_SLOTS] = { 1, 1 }; - return (cPretendFrame[MISSION_AUDIO_SLOTS]++ % 64) == 0; + return (cPretendFrame[slot]++ % 64) == 0; } void |