summaryrefslogtreecommitdiff
path: root/src/code_8006E9C0.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2026-02-24 14:51:25 -0700
committerGitHub <noreply@github.com>2026-02-24 14:51:25 -0700
commit548ccf0063f6c4d6608cf87f46a347c71079c0bd (patch)
tree42708916b67dc1dd553c70199339541a401dca15 /src/code_8006E9C0.c
parent321d440089fc7424002879c9b2e74a4b0ffe9a8d (diff)
Impl Sky and SkyActors (#630)
* Create Cloud.cpp * Create Cloud.h * Fix the cloud * Cleanup * More cleanup * Update Track.h * Refactor SkyboxCloud position calculations * Update SkyboxStar.cpp * Update SkyboxStar.cpp * Refactor SkyboxStar.cpp by removing redundant code * Update SkyboxCloud.cpp * Refactor SkyboxSnow.cpp by reordering includes * Update SkyboxCloud.h * Refactor SkyboxStar.h for improved formatting * Impl skyboxcloud * Update comment * update comment * Work now * Fully impl Sky * Fix define * Fix args
Diffstat (limited to 'src/code_8006E9C0.c')
-rw-r--r--src/code_8006E9C0.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c
index fa6a96322..1ffadf8b1 100644
--- a/src/code_8006E9C0.c
+++ b/src/code_8006E9C0.c
@@ -31,6 +31,7 @@
#include "port/Engine.h"
#include "engine/editor/Editor.h"
#include "engine/tracks/Track.h"
+#include "engine/sky/Sky.h"
void init_hud(void) {
@@ -613,11 +614,11 @@ void init_stars(StarData* starList) {
D_8018D230 = 1;
}
-void func_8007055C(void) {
+void func_8007055C(ScreenContext* screen) {
s32 var_s0;
s32 var_s4;
- CM_InitClouds();
+ InitSkyActors(screen);
func_8008C23C();
}
@@ -656,8 +657,8 @@ void init_hud_one_player(void) {
find_unused_obj_index(&gItemWindowObjectByPlayerId[0]);
find_unused_obj_index(&gItemWindowObjectByPlayerId[1]);
init_object_list_index();
- func_8007055C();
- func_8007055C();
+ func_8007055C(gScreenOneCtx);
+ func_8007055C(gScreenTwoCtx);
init_course_object();
playerHUD[PLAYER_ONE].speedometerX = 0x0156;
playerHUD[PLAYER_ONE].speedometerY = 0x0106;
@@ -734,8 +735,8 @@ void init_hud_two_player_vertical(void) {
find_unused_obj_index(&gItemWindowObjectByPlayerId[1]);
init_object_list_index();
- func_8007055C();
- func_8007055C();
+ func_8007055C(gScreenOneCtx);
+ func_8007055C(gScreenTwoCtx);
init_course_object();
playerHUD[PLAYER_ONE].itemBoxX = -0x52;
@@ -799,8 +800,8 @@ void init_hud_two_player_horizontal() {
find_unused_obj_index(&gItemWindowObjectByPlayerId[1]);
init_object_list_index();
- func_8007055C();
- func_8007055C();
+ func_8007055C(gScreenOneCtx);
+ func_8007055C(gScreenTwoCtx);
init_course_object();
playerHUD[PLAYER_ONE].itemBoxY = 0x22;
@@ -872,6 +873,16 @@ void init_hud_three_four_player(void) {
find_unused_obj_index(&gItemWindowObjectByPlayerId[3]);
init_object_list_index();
+
+ if (CVarGetInteger("gMultiplayerNoFeatureCuts", false) == true) {
+ func_8007055C(gScreenOneCtx);
+ func_8007055C(gScreenTwoCtx);
+ func_8007055C(gScreenThreeCtx);
+ if (gPlayerCountSelection1 == 4) {
+ func_8007055C(gScreenFourCtx);
+ }
+ }
+
init_course_object();
playerHUD[PLAYER_ONE].itemBoxX = -0x36;