From 3c8f57089b4684e8943b41e5372d2e7195f145fb Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Sat, 15 Aug 2020 18:46:34 +0100 Subject: [PATCH] remove redundancy comments --- src/code_f8f60_len_1560.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/code_f8f60_len_1560.c b/src/code_f8f60_len_1560.c index 3a58205999..3c471d9d1f 100644 --- a/src/code_f8f60_len_1560.c +++ b/src/code_f8f60_len_1560.c @@ -114,15 +114,14 @@ s32 IsPlayerWithin(script_context* script, s32 initialCall) { bytecode* ptrReadPos = script->ptrReadPos; player_status* playerStatus = &gPlayerStatus; - /* Function temporaries are redundant, stack should be used instead */ s32* targetX = &script->functionTemp[0]; s32* targetZ = &script->functionTemp[1]; s32* distanceRequired = &script->functionTemp[2]; f32 distance; - bytecode outVar = SI_VAR_0; /* Redundant */ + bytecode outVar = SI_VAR_0; - if (initialCall) { /* Redundant condition, function always returns DONE */ + if (initialCall) { *targetX = get_variable(script, *ptrReadPos++); *targetZ = get_variable(script, *ptrReadPos++); *distanceRequired = get_variable(script, *ptrReadPos++);