summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-12 19:10:08 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:44 +0200
commit8fc99387f5a8cedd3cf7f28d54a733df0a031955 (patch)
tree48da4d77cf1d37589585e46ffd2d1310b82ca2f3 /src/audio/AudioLogic.cpp
parentAdd macros to set sample loop offsets (diff)
downloadre3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar.gz
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar.bz2
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar.lz
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar.xz
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.tar.zst
re3-8fc99387f5a8cedd3cf7f28d54a733df0a031955.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index a5de21d0..8472cda6 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -6079,12 +6079,12 @@ cPedComments::Process()
}
// Switch bank
- if (m_nActiveBank) {
- actualUsedBank = SFX_BANK_PED_COMMENTS;
- m_nActiveBank = SFX_BANK_0;
+ if (m_nActiveBank == 0) {
+ actualUsedBank = 0;
+ m_nActiveBank = 1;
} else {
- actualUsedBank = SFX_BANK_0;
- m_nActiveBank = SFX_BANK_PED_COMMENTS;
+ actualUsedBank = 1;
+ m_nActiveBank = 0;
}
comment = m_asPedComments[actualUsedBank];
for (uint32 i = 0; i < m_nCommentsInBank[actualUsedBank]; i++) {