diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 19:10:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 19:10:20 +0100 |
commit | 977a1a08e9648121fb53d74f4f66cd0e8b022e6b (patch) | |
tree | fc04ea15a114dbc793b4f9146bb8ba40b0950cf9 /src/audio/AudioManager.h | |
parent | Fix (diff) | |
parent | cAudioManager::ProcessBoatEngine (diff) | |
download | re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar.gz re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar.bz2 re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar.lz re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar.xz re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.tar.zst re3-977a1a08e9648121fb53d74f4f66cd0e8b022e6b.zip |
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r-- | src/audio/AudioManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 378e16d3..49fb1d8d 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -517,6 +517,8 @@ public: void SetPedTalkingStatus(CPed *ped, uint8 status); // done void SetPlayersMood(uint8 mood, uint32 time); // done + float Sqrt(float v) const { return v <= 0.0f ? 0.0f : ::Sqrt(v); } + #ifdef GTA_PC // only used in pc void AdjustSamplesVolume(); // done (inlined) |