summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-16 04:07:39 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-16 04:07:39 +0200
commit76dd769085ae822243b4c34aa867408ae69e5893 (patch)
tree525c9b05b9b320e210cbb447abe33d3c33e69dbc /src/control
parentMerge pull request #550 from erorcun/miami (diff)
parentRemove unused audio enum (diff)
downloadre3-76dd769085ae822243b4c34aa867408ae69e5893.tar
re3-76dd769085ae822243b4c34aa867408ae69e5893.tar.gz
re3-76dd769085ae822243b4c34aa867408ae69e5893.tar.bz2
re3-76dd769085ae822243b4c34aa867408ae69e5893.tar.lz
re3-76dd769085ae822243b4c34aa867408ae69e5893.tar.xz
re3-76dd769085ae822243b4c34aa867408ae69e5893.tar.zst
re3-76dd769085ae822243b4c34aa867408ae69e5893.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Phones.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp
index ee01b6c4..6fac3f9d 100644
--- a/src/control/Phones.cpp
+++ b/src/control/Phones.cpp
@@ -12,6 +12,7 @@
#include "AudioScriptObject.h"
#include "RpAnimBlend.h"
#include "AnimBlendAssociation.h"
+#include "soundlist.h"
#ifdef FIX_BUGS
#include "Replay.h"
#endif
@@ -97,7 +98,7 @@ CPhoneInfo::Update(void)
if (scratchTheCabinet) {
m_aPhones[phoneId].m_pEntity->GetUp().z = (CGeneral::GetRandomNumber() % 1024) / 16000.0f + 1.0f;
if (!phoneRings)
- PlayOneShotScriptObject(_SCRSOUND_PHONE_RING, m_aPhones[phoneId].m_pEntity->GetPosition());
+ PlayOneShotScriptObject(SCRIPT_SOUND_PAYPHONE_RINGING, m_aPhones[phoneId].m_pEntity->GetPosition());
} else {
m_aPhones[phoneId].m_pEntity->GetUp().z = 1.0f;
}
@@ -136,7 +137,7 @@ CPhoneInfo::Update(void)
if (scratchTheCabinet) {
m_aPhones[phoneId].m_pEntity->GetUp().z = (CGeneral::GetRandomNumber() % 1024) / 16000.0f + 1.0f;
if (!phoneRings)
- PlayOneShotScriptObject(_SCRSOUND_PHONE_RING, m_aPhones[phoneId].m_pEntity->GetPosition());
+ PlayOneShotScriptObject(SCRIPT_SOUND_PAYPHONE_RINGING, m_aPhones[phoneId].m_pEntity->GetPosition());
} else {
m_aPhones[phoneId].m_pEntity->GetUp().z = 1.0f;
}