2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Implement WorldTeleporter and SpiderBallWaypoint

This commit is contained in:
2017-08-08 15:12:14 -07:00
parent 69187353b9
commit ecff2b7f8d
16 changed files with 402 additions and 35 deletions

View File

@@ -33,7 +33,7 @@ public:
inline float Float()
{
return Next() * 0.000015259022;
return Next() * 0.000015259022f;
}
inline float Range(float min, float max)
@@ -43,9 +43,7 @@ public:
inline s32 Range(s32 min, s32 max)
{
s32 rnd = Next();
s32 diff = (max - min) + 1;
return min + (rnd - ((rnd / diff) * diff));
return min + (Next() % ((max - min) + 1));
}
static CRandom16* GetRandomNumber() {return g_randomNumber;}