summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-05 10:27:33 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-05 10:27:33 +0200
commit147dca44fa9c759b0d576cb8d4f9575720fc937b (patch)
treef23ca5fbbcbb8769c159a931f96041aea357f150 /src/audio/AudioLogic.cpp
parentminor stuff (diff)
downloadre3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar.gz
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar.bz2
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar.lz
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar.xz
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.tar.zst
re3-147dca44fa9c759b0d576cb8d4f9575720fc937b.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index b6fb5a86..01b074ed 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -6536,9 +6536,9 @@ cAudioManager::ProcessOneShotScriptObject(uint8 sound)
m_sQueueSample.m_bIs2D = false;
emittingVolume = m_anRandomTable[2] % 20 + 90;
break;
- case SCRIPT_SOUND_110:
- case SCRIPT_SOUND_111:
- if (SampleManager.IsSampleBankLoaded(0) != 1)
+ case SCRIPT_SOUND_TRAIN_ANNOUNCEMENT_1:
+ case SCRIPT_SOUND_TRAIN_ANNOUNCEMENT_2:
+ if (!SampleManager.IsSampleBankLoaded(0))
return;
m_sQueueSample.m_fSoundIntensity = 80.0f;
m_sQueueSample.m_nSampleIndex = SFX_TRAIN_STATION_ANNOUNCE;