summaryrefslogtreecommitdiff
path: root/src/JSystem/JAudio/JASInstRand.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-10-27 00:29:52 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-10-27 00:29:52 -0400
commit81ebe0dfd449166e00de31ce9be2d7449e31536c (patch)
tree0f7b648f69950c3d5edd916041ac52697c94ca4d /src/JSystem/JAudio/JASInstRand.cpp
parent02de6b772d06b2ed15bbe7b25d01901fdca84966 (diff)
Work on JAS inlines, fix limits/climits headers
Diffstat (limited to 'src/JSystem/JAudio/JASInstRand.cpp')
-rw-r--r--src/JSystem/JAudio/JASInstRand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/JSystem/JAudio/JASInstRand.cpp b/src/JSystem/JAudio/JASInstRand.cpp
index 91103ed4..e0617ecf 100644
--- a/src/JSystem/JAudio/JASInstRand.cpp
+++ b/src/JSystem/JAudio/JASInstRand.cpp
@@ -10,8 +10,8 @@
/* 80286B58-80286BF4 .text getY__Q28JASystem9TInstRandCFii */
f32 JASystem::TInstRand::getY(int, int) const {
- static JMath::TRandom_fast_ oRandom(0);
- f32 tmp = (oRandom.get_ufloat_1() * 2.0f - 0.9999999f);
+ static JMath::TRandom_<JMath::TRandom_fast_> oRandom(0);
+ f32 tmp = oRandom.get_float(2.0f);
tmp *= mWidth;
return tmp + mBase;
}