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

All int elements implemented

This commit is contained in:
Jack Andersen
2016-02-06 14:19:59 -10:00
parent 8fbe6a953c
commit 7ae8d21c55
9 changed files with 444 additions and 46 deletions

View File

@@ -2,7 +2,6 @@
#include "CParticleGlobals.hpp"
#include "CRandom16.hpp"
#include <math.h>
#include <float.h>
namespace Retro
{
@@ -53,7 +52,7 @@ bool CREKeyframeEmitter::GetValue(int frame, float& valOut) const
if (ltPerc == 100)
valOut = x18_keys[100];
else
valOut = x18_keys[ltPerc+1] * ltPercRem + (1.0f - ltPercRem) * x18_keys[ltPerc];
valOut = ltPercRem * x18_keys[ltPerc+1] + (1.0f - ltPercRem) * x18_keys[ltPerc];
}
return false;
}
@@ -307,7 +306,7 @@ bool CRECEXT::GetValue(int frame, float& valOut) const
return false;
}
bool CREITRL::GetValue(int frame, float& valOut) const
bool CREIntTimesReal::GetValue(int frame, float& valOut) const
{
int a;
x4_a->GetValue(frame, a);