summaryrefslogtreecommitdiff
path: root/src/code/z_map_exp.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2020-08-30 18:51:46 +0200
committerGitHub <noreply@github.com>2020-08-30 12:51:46 -0400
commitb4ac94a8fd4ba35163504edd939ef85d087c4fa5 (patch)
tree5d1a748dfcf8d59e5a50403ca31f60e69a958805 /src/code/z_map_exp.c
parent2a2fdf7f3edea4b6ce575eb675e8c3a967371b7c (diff)
Match/Improve more non matching functions (#366)
* Match/Improve more non matchings * Remove SET_NEXT_GAMESTATE from preserved macros
Diffstat (limited to 'src/code/z_map_exp.c')
-rw-r--r--src/code/z_map_exp.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/code/z_map_exp.c b/src/code/z_map_exp.c
index 2ca226389..9336c8a85 100644
--- a/src/code/z_map_exp.c
+++ b/src/code/z_map_exp.c
@@ -311,11 +311,10 @@ void Map_Init(GlobalContext* globalCtx) {
}
}
-#ifdef NON_MATCHING
-// regalloc and minor ordering differences
void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
+ s32 pad;
Player* player = PLAYER;
- s16 tempX, tempY, tempZ;
+ s16 tempX, tempZ;
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 565);
@@ -335,8 +334,8 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
Matrix_Translate((R_COMPASS_OFFSET_X + tempX) / 10.0f, (R_COMPASS_OFFSET_Y - tempZ) / 10.0f, 0.0f, MTXMODE_NEW);
Matrix_Scale(0.4f, 0.4f, 0.4f, MTXMODE_APPLY);
Matrix_RotateX(-1.6f, MTXMODE_APPLY);
- tempY = (0x7FFF - player->actor.shape.rot.y) / 0x400;
- Matrix_RotateY(tempY / 10.0f, MTXMODE_APPLY);
+ tempX = (0x7FFF - player->actor.shape.rot.y) / 0x400;
+ Matrix_RotateY(tempX / 10.0f, MTXMODE_APPLY);
gSPMatrix(oGfxCtx->overlay.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_map_exp.c", 585),
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
@@ -360,9 +359,6 @@ void Minimap_DrawCompassIcons(GlobalContext* globalCtx) {
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_map_exp.c", 607);
}
-#else
-#pragma GLOBAL_ASM("asm/non_matchings/code/z_map_exp/Minimap_DrawCompassIcons.s")
-#endif
void Minimap_Draw(GlobalContext* globalCtx) {
s32 pad[2];