summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-25 12:41:29 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-25 12:41:29 +0200
commit5017e09dd0598fffa91613e779d5f6ab99afe51e (patch)
tree16f29b976356a68e1e5c0fe13552d4675a189db5 /src/audio/AudioManager.h
parentAudio: refactoring, type fixes, renaming cAudioManager fields (diff)
downloadre3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar.gz
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar.bz2
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar.lz
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar.xz
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.tar.zst
re3-5017e09dd0598fffa91613e779d5f6ab99afe51e.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 529b23aa..01f7bb23 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -107,22 +107,22 @@ VALIDATE_SIZE(tPedComment, 28);
class cPedComments
{
public:
- tPedComment m_asPedComments[NUM_PED_COMMENTS_BANKS][NUM_PED_COMMENTS_SLOTS];
- uint8 m_nIndexMap[NUM_PED_COMMENTS_BANKS][NUM_PED_COMMENTS_SLOTS];
- uint8 m_nCommentsInBank[NUM_PED_COMMENTS_BANKS];
- uint8 m_nActiveBank;
+ tPedComment m_aPedCommentQueue[NUM_SOUND_QUEUES][NUM_PED_COMMENTS_SLOTS];
+ uint8 m_aPedCommentOrderList[NUM_SOUND_QUEUES][NUM_PED_COMMENTS_SLOTS];
+ uint8 m_nPedCommentCount[NUM_SOUND_QUEUES];
+ uint8 m_nActiveQueue;
cPedComments()
{
for (int i = 0; i < NUM_PED_COMMENTS_SLOTS; i++)
- for (int j = 0; j < NUM_PED_COMMENTS_BANKS; j++) {
- m_asPedComments[j][i].m_nProcess = -1;
- m_nIndexMap[j][i] = NUM_PED_COMMENTS_SLOTS;
+ for (int j = 0; j < NUM_SOUND_QUEUES; j++) {
+ m_aPedCommentQueue[j][i].m_nProcess = -1;
+ m_aPedCommentOrderList[j][i] = NUM_PED_COMMENTS_SLOTS;
}
- for (int i = 0; i < NUM_PED_COMMENTS_BANKS; i++)
- m_nCommentsInBank[i] = 0;
- m_nActiveBank = 0;
+ for (int i = 0; i < NUM_SOUND_QUEUES; i++)
+ m_nPedCommentCount[i] = 0;
+ m_nActiveQueue = 0;
}
void Add(tPedComment *com);
void Process();