summaryrefslogtreecommitdiff
path: root/src/render_objects.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-01-23 11:22:07 -0700
committerGitHub <noreply@github.com>2025-01-23 11:22:07 -0700
commit1f189dfa804a05177f99dda1044898eb63fdcb3f (patch)
tree598e0a6c26a5554afd1fcbcd801079fd1df090d3 /src/render_objects.c
parent24ecfc3db43bfa606f41c42ef8778f96b5047c6b (diff)
Game.cpp and World.cpp Cleanup (#159)
* Remove CProperties and delete dup Properties from World.h * Improvement * Fix compile * Cleanup * Document gRaceState * wip cleanup * compile * Impl PlayerBombKart * Rename CourseManager_ to CM_ * Finish renames m_ to CM_ * cleanup * Remove extra printf --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/render_objects.c')
-rw-r--r--src/render_objects.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/render_objects.c b/src/render_objects.c
index f6baef9b5..83c16b56b 100644
--- a/src/render_objects.c
+++ b/src/render_objects.c
@@ -43,7 +43,6 @@
#include "port/Game.h"
#include "port/Engine.h"
-#include "engine/Engine.h"
#include "engine/courses/Course.h"
#include "engine/Matrix.h"
@@ -2621,9 +2620,9 @@ void func_8004EF9C(s32 arg0) {
s16 temp_t0;
s16 temp_v0;
- temp_v0 = CourseManager_GetProps()->MinimapDimensions.X;
- temp_t0 = CourseManager_GetProps()->MinimapDimensions.Z;
- func_8004D37C(0x00000104, 0x0000003C, CourseManager_GetProps()->MinimapTexture, 0x000000FF, 0x000000FF, 0x000000FF,
+ temp_v0 = CM_GetProps()->MinimapDimensions.X;
+ temp_t0 = CM_GetProps()->MinimapDimensions.Z;
+ func_8004D37C(0x00000104, 0x0000003C, CM_GetProps()->MinimapTexture, 0x000000FF, 0x000000FF, 0x000000FF,
0x000000FF, temp_v0, temp_t0, temp_v0, temp_t0);
}
@@ -2653,7 +2652,7 @@ void set_minimap_finishline_position(s32 arg0) {
}
//! @todo Get course minimap props from course.
- CourseManager_MinimapFinishlinePosition();
+ CM_MinimapFinishlinePosition();
draw_hud_2d_texture_8x8(var_f2, var_f0, (u8*) common_texture_minimap_finish_line);
}
@@ -4032,23 +4031,17 @@ void func_800568A0(s32 objectIndex, s32 playerId) {
}
void func_800569F4(s32 playerIndex) {
- s32 objectIndex;
-
- objectIndex = gIndexObjectBombKart[playerIndex];
- init_object(objectIndex, 0);
- gObjectList[objectIndex].primAlpha = 0;
+ CM_DisplayBattleBombKart(playerIndex, 0);
}
-void func_80056A40(s32 playerIndex, s32 arg1) {
- s32 objectIndex;
- objectIndex = gIndexObjectBombKart[playerIndex];
- init_object(objectIndex, 0);
- gObjectList[objectIndex].primAlpha = (s16) arg1;
+void func_80056A40(s32 playerIndex, s32 arg1) {
+ CM_DisplayBattleBombKart(playerIndex, arg1);
}
void func_80056A94(s32 playerIndex) {
- func_80072428(gIndexObjectBombKart[playerIndex]);
+ //func_80072428(gIndexObjectBombKart[playerIndex]);
+ CM_DisplayBattleBombKart(playerIndex, 0);
}
void render_battle_bomb_karts(s32 cameraId) {