summaryrefslogtreecommitdiff
path: root/src/spawn_players.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-11-09 19:07:44 -0700
committerGitHub <noreply@github.com>2025-11-09 19:07:44 -0700
commitde9c5d510175bba11ab8704e67be3a3a94f9149e (patch)
tree34c42dbfe9f2a6eb5fbce5f6a31b532ff2a3f243 /src/spawn_players.c
parent760fa3bf5226c2a6052a5d4d53fd0e27f2911e60 (diff)
Implement SpawnParams struct (#536)
* Impl SpawnParams * Added json submodule * Update json * Update * Works * Remove comment * Works refactor * Snowman and thwomp working * Impl hot air balloon * More progress * All OObjects are done * cleanup * Refactor 2Dpath to normal path * Update nlohmann json & fix compile * Rest of actors * MORE CHANGES * Finish actors * Done PR, some fix to collision viewer * Impl falling rocks * Add const * wip editor refactor * Property work * continue * Overridable editor properties * Actor saving/loading works now * Fix light alignment * Clarification * Impl penguin * params impl signs * properties impl falling rock * More property impls * impl air balloon * Add spawnParams to OObject Translate * Snowman translate better * impl hedgehog properly * properties impl trophy * thwomp progress * Finish impl properties * Fix compile * Fix cursor collisions * Move registered actors * Rename pathPoint XYZ to xyz * Fix editor pause bug * Clean up * Review comments * Remove SpawnParams struct from actor classes * Rename * Player Label First Iteration * Work now * Working 3d text * Fix boo bug * Finish AText actor * Fix spawnparams compile * Register AText * Finish Text Actor * Fix thwomp interpolation * Fix compile * Fix crab and hedgehog * Fix loading flagpole * Fix Hot Air Balloon * Turn zbuffer on for AText * Update --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/spawn_players.c')
-rw-r--r--src/spawn_players.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spawn_players.c b/src/spawn_players.c
index f340e8978..464049043 100644
--- a/src/spawn_players.c
+++ b/src/spawn_players.c
@@ -878,9 +878,9 @@ void func_8003C0F0(void) {
func_8000EEDC();
} else if (!IsPodiumCeremony()) {
init_course_path_point();
- sp5E = (f32) gTrackPaths[0][0].posX;
- sp5C = (f32) gTrackPaths[0][0].posZ;
- sp5A = (f32) gTrackPaths[0][0].posY;
+ sp5E = (f32) gTrackPaths[0][0].x;
+ sp5C = (f32) gTrackPaths[0][0].z;
+ sp5A = (f32) gTrackPaths[0][0].y;
if (IsToadsTurnpike()) {
sp5E = 0;
}
@@ -1279,7 +1279,7 @@ void func_8003D080(void) {
}
// Init freecam
- //freecam_init(player->pos[0], player->pos[1], player->pos[2], player->rotation[1], 1, 4);
+ freecam_init(player->pos[0], player->pos[1], player->pos[2], player->rotation[1], 1, 4);
switch (gActiveScreenMode) {
case SCREEN_MODE_1P: