JASInstRand

This commit is contained in:
Jcw87
2024-01-22 04:57:08 -08:00
parent fd0b8224c1
commit 5cdf6c107f
3 changed files with 28 additions and 6 deletions
+7 -5
View File
@@ -3,11 +3,13 @@
// Translation Unit: JASInstRand.cpp
//
#include "JASInstRand.h"
#include "dolphin/types.h"
#include "JSystem/JAudio/JASInstRand.h"
#include "JSystem/JMath/random.h"
/* 80286B58-80286BF4 .text getY__Q28JASystem9TInstRandCFii */
void JASystem::TInstRand::getY(int, int) const {
/* Nonmatching */
f32 JASystem::TInstRand::getY(int, int) const {
static JMath::TRandom_fast_ oRandom(0);
f32 tmp = (oRandom.get_ufloat_1() * 2.0f - 0.9999999f);
tmp *= field_0xc;
return tmp + field_0x8;
}