removing extra lines / formatting

This commit is contained in:
Ethan Roseman 2020-10-21 21:43:08 -04:00
parent 5c049a9f22
commit 69a29dc8fc
77 changed files with 14 additions and 87 deletions

View File

@ -234,17 +234,17 @@ typedef struct ScriptInstance {
/* 0x140 */ s32* flagArray;
/* 0x144 */ ScriptID id;
/* 0x148 */ union {
s32 enemyID;
s32 actorID;
struct Enemy* enemy; ///< For overworld scripts owned by an Npc
struct Actor* actor; ///< For battle scripts
} owner1; ///< Initially -1
s32 enemyID;
s32 actorID;
struct Enemy* enemy; ///< For overworld scripts owned by an Npc
struct Actor* actor; ///< For battle scripts
} owner1; ///< Initially -1
/* 0x14C */ union {
NpcId npcID;
s32 triggerID;
struct Npc* npc; ///< For overworld scripts owned by an Npc
struct Trigger* trigger;
} owner2; ///< Initially -1
NpcId npcID;
s32 triggerID;
struct Npc* npc; ///< For overworld scripts owned by an Npc
struct Trigger* trigger;
} owner2; ///< Initially -1
/* 0x150 */ f32 timeScale;
/* 0x154 */ f32 frameCounter;
/* 0x158 */ s32 unk_158;

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_07/CAC5D0", func_8024061C_CAC80C);
INCLUDE_ASM(s32, "world/area_flo/flo_07/CAC5D0", func_802406D0_CAC8C0);

View File

@ -26,4 +26,3 @@ INCLUDE_ASM(s32, "world/area_flo/flo_08/CAFAC0", func_80241BCC_CB090C);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_flo/flo_12/CC0E70", func_8024027C_CC10AC);
#include "world/common/GetItemName.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -10,4 +10,3 @@ INCLUDE_ASM(s32, "world/area_jan/jan_04/B451F0", func_80240D0C_B4547C);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_05/B4AF10", func_802406DC_B4B14C);
INCLUDE_ASM(s32, "world/area_jan/jan_05/B4AF10", func_80240738_B4B1A8);

View File

@ -41,5 +41,4 @@ INCLUDE_ASM(s32, "world/area_jan/jan_05/B4B260", func_8024219C_B4CC0C);
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_05/B4B260", func_8024268C_B4D0FC);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -40,4 +40,3 @@ INCLUDE_ASM(s32, "world/area_jan/jan_06/B52F70", func_802420EC_B5491C);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_08/B5E5C0", func_8024054C_B5E7FC);
INCLUDE_ASM(s32, "world/area_jan/jan_08/B5E5C0", func_802405A8_B5E858);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_09/B660A0", func_8024082C_B662DC);
INCLUDE_ASM(s32, "world/area_jan/jan_09/B660A0", func_80240888_B66338);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,5 +3,4 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_10/B6D610", func_802414BC_B6D84C);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -10,4 +10,3 @@ INCLUDE_ASM(s32, "world/area_jan/jan_12/B730B0", func_802401CC_B7327C);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -10,4 +10,3 @@ INCLUDE_ASM(s32, "world/area_jan/jan_13/B767B0", func_802402B8_B76A68);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -10,4 +10,3 @@ INCLUDE_ASM(s32, "world/area_jan/jan_14/B7A050", func_802401CC_B7A21C);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -11,7 +11,6 @@ INCLUDE_ASM(s32, "world/area_jan/jan_22/B851A0", func_802412E0_B85460);
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_jan/jan_22/B851A0", func_8024160C_B8578C);
INCLUDE_ASM(s32, "world/area_jan/jan_22/B851A0", func_80241668_B857E8);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_kmr/kmr_04/8CA960", func_8024029C_8CAB9C);
INCLUDE_ASM(s32, "world/area_kmr/kmr_04/8CA960", func_802402C8_8CABC8);

View File

@ -3,5 +3,4 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_kmr/kmr_05/8CF570", func_8024173C_8CF7AC);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -3,7 +3,6 @@
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_kmr/kmr_11/8DA100", func_8024023C_8DA33C);
INCLUDE_ASM(s32, "world/area_kmr/kmr_11/8DA100", func_8024027C_8DA37C);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -21,7 +21,6 @@ INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8EBE50", func_80240358_8EC178);
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8EBE50", func_802405BC_8EC3DC);
INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8EBE50", func_802406BC_8EC4DC);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -15,7 +15,6 @@ INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8ED5A0", func_802419BC_8ED7DC);
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8ED5A0", func_80241C9C_8EDABC);
INCLUDE_ASM(s32, "world/area_kmr/kmr_20/8ED5A0", func_80241CF0_8EDB10);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -35,7 +35,6 @@ INCLUDE_ASM(s32, "world/area_nok/nok_11/9F4A40", func_80241AE0_9F6520);
#include "world/common/SomeMatrixOperations.inc.c"
INCLUDE_ASM(s32, "world/area_nok/nok_11/9F4A40", func_80241F08_9F6948);
INCLUDE_ASM(s32, "world/area_nok/nok_11/9F4A40", func_80241F30_9F6970);

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -18,4 +18,3 @@ INCLUDE_ASM(s32, "world/area_sam/sam_02/D05730", func_80240404_D05B34);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -6,4 +6,3 @@ INCLUDE_ASM(s32, "world/area_sam/sam_06/D1FE90", func_80240124_D1FFB4);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -4,4 +4,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -4,4 +4,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -54,4 +54,3 @@ INCLUDE_ASM(s32, "world/area_sbk/sbk_30/93F5B0", func_802415A4_940B54);
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -4,4 +4,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -2,4 +2,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -4,4 +4,3 @@
#include "world/common/SomeMatrixOperations.inc.c"

View File

@ -1,6 +1,6 @@
#include "common.h"
static ApiStatus Bandit_DropCoin(ScriptInstance *script, s32 isInitialCall) {
static ApiStatus Bandit_DropCoin(ScriptInstance* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
NpcId npcID;
Npc* npc;
@ -19,7 +19,7 @@ static ApiStatus Bandit_DropCoin(ScriptInstance *script, s32 isInitialCall) {
} else {
npc = npcID;
}
script->functionTemp[0] = npc;
script->functionTemp[1] = itemEntityIndex;
script->functionTemp[2] = areaFlag;

View File

@ -32,6 +32,6 @@ static ApiStatus SomeMatrixOperation2(ScriptInstance* script, s32 isInitialCall)
guTranslateF(&mtx, 0.0f, -temp_f22, 0.0f);
guMtxCatF(&mtx, &model->transformMatrix, &model->transformMatrix);
}
return ApiStatus_DONE2;
}

View File

@ -1,6 +1,6 @@
#include "common.h"
static ApiStatus SomeXYZFuncTodoRename(ScriptInstance *script) {
static ApiStatus SomeXYZFuncTodoRename(ScriptInstance* script) {
PlayerStatus* playerStatus = PLAYER_STATUS;
Bytecode* args = script->ptrReadPos;
s32 xVar = *args++;