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

Parameter renaming and minor bug fixes

This commit is contained in:
Jack Andersen
2016-02-28 17:03:11 -10:00
parent 02d605cbb9
commit c1af78e7ed
8 changed files with 58 additions and 59 deletions

View File

@@ -7,7 +7,7 @@ namespace pshag
CUVEAnimTexture::CUVEAnimTexture(TToken<CTexture>&& tex, CIntElement* a, CIntElement* b,
CIntElement* c, CIntElement* d, CIntElement* e, bool f)
: x4_tex(std::move(tex)), x24_loop(f), x28_cycleFrameRate(e)
: x4_tex(std::move(tex)), x24_loop(f), x28_cycleFrames(e)
{
a->GetValue(0, x10_tileW);
delete a;
@@ -42,7 +42,7 @@ CUVEAnimTexture::CUVEAnimTexture(TToken<CTexture>&& tex, CIntElement* a, CIntEle
void CUVEAnimTexture::GetValueUV(int frame, SUVElementSet& valOut) const
{
int cv;
x28_cycleFrameRate->GetValue(frame, cv);
x28_cycleFrames->GetValue(frame, cv);
float cvf = cv / float(x20_tiles);
cvf = frame / cvf;