From 0d8d3e50a971f1355efe4b8b693d189ccdbd6dd3 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Sat, 15 Aug 2020 01:17:20 +0100 Subject: [PATCH] clean up MakeLerp --- src/code_f8f60_len_1560.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/code_f8f60_len_1560.c b/src/code_f8f60_len_1560.c index 5dda100036..0935aafadf 100644 --- a/src/code_f8f60_len_1560.c +++ b/src/code_f8f60_len_1560.c @@ -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; }