mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
clean up MakeLerp
This commit is contained in:
parent
7ab624d7b1
commit
0d8d3e50a9
@ -2,19 +2,13 @@
|
||||
|
||||
s32 MakeLerp(script_context* script, s32 initialCall) {
|
||||
s32* ptrReadPos = script->ptrReadPos;
|
||||
s32* ptrNextPos = *ptrReadPos++;
|
||||
s32* ptrNextPos2;
|
||||
s32* ptrNextPos3;
|
||||
s32* ptrNextPos4;
|
||||
|
||||
script->varTable[12] = get_variable(script, ptrNextPos);
|
||||
ptrNextPos2 = *ptrReadPos++;
|
||||
script->varTable[13] = get_variable(script, ptrNextPos2);
|
||||
ptrNextPos3 = *ptrReadPos++;
|
||||
script->varTable[15] = get_variable(script, ptrNextPos3);
|
||||
ptrNextPos4 = *ptrReadPos++;
|
||||
script->varTable[11] = get_variable(script, ptrNextPos4);
|
||||
script->varTable[14] = 0;
|
||||
script->varTable[0xC] = get_variable(script, *ptrReadPos++); // start
|
||||
script->varTable[0xD] = get_variable(script, *ptrReadPos++); // end
|
||||
script->varTable[0xF] = get_variable(script, *ptrReadPos++); // duration
|
||||
script->varTable[0xB] = get_variable(script, *ptrReadPos++); // easing type
|
||||
script->varTable[0xE] = 0;
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user