Code cleanup

This commit is contained in:
Arceveti committed 2021-09-23 13:37:03 -07:00
1 parent 8ad773a7eb
commit 9b59eb0256
163 files changed
+1806 -2251

No files matched your search

+2 -4
View File
@@ -784,8 +784,6 @@ static s32 bhv_cmd_scale(void) {
// Command 0x30: Sets various parameters that the object uses for calculating physics.
// Usage: SET_OBJ_PHYSICS(wallHitboxRadius, gravity, bounciness, dragStrength, friction, buoyancy, unused1, unused2)
static s32 bhv_cmd_set_obj_physics(void) {
UNUSED f32 unused1, unused2;
gCurrentObject->oWallHitboxRadius = BHV_CMD_GET_1ST_S16(1);
gCurrentObject->oGravity = BHV_CMD_GET_2ND_S16(1) / 100.0f;
gCurrentObject->oBounciness = BHV_CMD_GET_1ST_S16(2) / 100.0f;
@@ -793,8 +791,8 @@ static s32 bhv_cmd_set_obj_physics(void) {
gCurrentObject->oFriction = BHV_CMD_GET_1ST_S16(3) / 100.0f;
gCurrentObject->oBuoyancy = BHV_CMD_GET_2ND_S16(3) / 100.0f;
unused1 = BHV_CMD_GET_1ST_S16(4) / 100.0f;
unused2 = BHV_CMD_GET_2ND_S16(4) / 100.0f;
UNUSED f32 unused1 = BHV_CMD_GET_1ST_S16(4) / 100.0f;
UNUSED f32 unused2 = BHV_CMD_GET_2ND_S16(4) / 100.0f;
gCurBhvCommand += 5;
return BHV_PROC_CONTINUE;
+2 -16
View File
@@ -498,23 +498,9 @@ static void load_environmental_regions(TerrainData **data) {
gEnvironmentRegions = *data;
numRegions = *(*data)++;
if (numRegions > 20) {
}
for (i = 0; i < numRegions; i++) {
UNUSED TerrainData val, loX, loZ, hiX, hiZ;
TerrainData height;
val = *(*data)++;
loX = *(*data)++;
hiX = *(*data)++;
loZ = *(*data)++;
hiZ = *(*data)++;
height = *(*data)++;
gEnvironmentLevels[i] = height;
*data += 5;
gEnvironmentLevels[i] = *(*data)++;
}
}
-3
View File
@@ -27,9 +27,6 @@ enum
typedef struct SurfaceNode SpatialPartitionCell[4];
// Needed for bs bss reordering memes.
extern s32 unused8038BE90;
extern SpatialPartitionCell gStaticSurfacePartition[NUM_CELLS][NUM_CELLS];
extern SpatialPartitionCell gDynamicSurfacePartition[NUM_CELLS][NUM_CELLS];
extern struct SurfaceNode *sSurfaceNodePool;