mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Atleast we go ingame
This commit is contained in:
@@ -16,9 +16,20 @@ struct FMath : public FGenericPlatformMath
|
||||
return A * A;
|
||||
}
|
||||
|
||||
static float SRand() // T(REP)
|
||||
static FORCEINLINE float Fractional(float Value)
|
||||
{
|
||||
return rand();
|
||||
return Value - TruncToFloat(Value);
|
||||
}
|
||||
|
||||
static float SRand()
|
||||
{
|
||||
GSRandSeed = (GSRandSeed * 196314165) + 907633515;
|
||||
union { float f; int32 i; } Result;
|
||||
union { float f; int32 i; } Temp;
|
||||
const float SRandTemp = 1.0f;
|
||||
Temp.f = SRandTemp;
|
||||
Result.i = (Temp.i & 0xff800000) | (GSRandSeed & 0x007fffff);
|
||||
return Fractional(Result.f);
|
||||
}
|
||||
|
||||
static FORCEINLINE uint32 FloorLog2(uint32 Value)
|
||||
|
||||
Reference in New Issue
Block a user