summaryrefslogtreecommitdiffstats
path: root/src/control/Phones.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-16 04:06:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-16 04:06:51 +0200
commitec1b91e5270b1c91885a5e8000a5ff8286aee140 (patch)
tree1ff508fda73ba0a3bc5514ab803fc3cd9e25f4b7 /src/control/Phones.cpp
parentfixed hanging boot (diff)
downloadre3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar.gz
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar.bz2
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar.lz
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar.xz
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.tar.zst
re3-ec1b91e5270b1c91885a5e8000a5ff8286aee140.zip
Diffstat (limited to '')
-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;
}