summaryrefslogtreecommitdiffstats
path: root/src/peds/PedChat.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-04 14:31:28 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-04 14:31:28 +0200
commit716740f918baef80be00ce2bd0b2dcfdd7d13a09 (patch)
tree70e982ab020ed6535f5e4b7e8524629246edbab9 /src/peds/PedChat.cpp
parentfixed typo (diff)
downloadre3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar.gz
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar.bz2
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar.lz
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar.xz
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.tar.zst
re3-716740f918baef80be00ce2bd0b2dcfdd7d13a09.zip
Diffstat (limited to 'src/peds/PedChat.cpp')
-rw-r--r--src/peds/PedChat.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/peds/PedChat.cpp b/src/peds/PedChat.cpp
index ee639a50..4480a8cd 100644
--- a/src/peds/PedChat.cpp
+++ b/src/peds/PedChat.cpp
@@ -155,4 +155,14 @@ CPed::Say(uint16 audio)
m_queuedSound = audioToPlay;
}
}
+}
+
+// --MIAMI: Done
+void
+CPed::Say(uint16 audio, int32 time)
+{
+ if (m_delayedSoundID == -1) {
+ m_delayedSoundID = audio;
+ m_delayedSoundTimer = CTimer::GetTimeInMilliseconds() + time;
+ }
} \ No newline at end of file