Add in a struct for surface map entires (#150)

Sourced from https://github.com/micro500/mariokart64/wiki/Surface-Map,
 only minor adjustments were made.

Updated the bounding box corner struct a little based on information from
 the surface map struct.

Refreshed several mips_to_c outputs

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
Tyler McGavran
2022-01-24 23:22:05 -05:00
committed by GitHub
parent f0e40cb746
commit e371625acb
11 changed files with 389 additions and 336 deletions
+8 -8
View File
@@ -2184,15 +2184,15 @@ GLOBAL_ASM("asm/non_matchings/code_80290C20/func_80295A38.s")
void func_80295BF8(s32 playerIndex) {
Player* player = &gPlayers[playerIndex];
func_802AAAAC(&player->unk_110);
player->boundingBoxCorners[FRONT_RIGHT_TYRE].unk_0D = 0.0f;
player->boundingBoxCorners[FRONT_LEFT_TYRE].unk_0D = 0.0f;
player->boundingBoxCorners[BACK_RIGHT_TYRE].unk_0D = 0.0f;
player->boundingBoxCorners[BACK_LEFT_TYRE].unk_0D = 0.0f;
player->boundingBoxCorners[FRONT_RIGHT_TYRE].surfaceFlags = 0;
player->boundingBoxCorners[FRONT_LEFT_TYRE].surfaceFlags = 0;
player->boundingBoxCorners[BACK_RIGHT_TYRE].surfaceFlags = 0;
player->boundingBoxCorners[BACK_LEFT_TYRE].surfaceFlags = 0;
player->boundingBoxCorners[FRONT_RIGHT_TYRE].tileIndex = 0x1388;
player->boundingBoxCorners[FRONT_LEFT_TYRE].tileIndex = 0x1388;
player->boundingBoxCorners[BACK_RIGHT_TYRE].tileIndex = 0x1388;
player->boundingBoxCorners[BACK_LEFT_TYRE].tileIndex = 0x1388;
player->boundingBoxCorners[FRONT_RIGHT_TYRE].surfaceMapIndex = 0x1388;
player->boundingBoxCorners[FRONT_LEFT_TYRE].surfaceMapIndex = 0x1388;
player->boundingBoxCorners[BACK_RIGHT_TYRE].surfaceMapIndex = 0x1388;
player->boundingBoxCorners[BACK_LEFT_TYRE].surfaceMapIndex = 0x1388;
}