diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 16:22:18 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 16:22:18 +0100 |
commit | fa6eb3a64f86161e6334dcea6669038f9c3daba5 (patch) | |
tree | 56788ee40a93b4e291065ccaacbea20c1c0064e2 /src/audio/AudioManager.h | |
parent | Fix (diff) | |
download | re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar.gz re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar.bz2 re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar.lz re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar.xz re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.tar.zst re3-fa6eb3a64f86161e6334dcea6669038f9c3daba5.zip |
Diffstat (limited to '')
-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) |