diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-12-07 13:52:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-07 13:52:02 -0700 |
| commit | 1e0de1057f8c0dcda54923ffe8d86ce436362f44 (patch) | |
| tree | 0b117a5b16eab61274481cbd7b9306cd4f1460b9 /src/spawn_players.c | |
| parent | 65853330926fa5c77ad75effab8c479ba1d96952 (diff) | |
Update spawn_players.c (#582)
Diffstat (limited to 'src/spawn_players.c')
| -rw-r--r-- | src/spawn_players.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spawn_players.c b/src/spawn_players.c index cf85a2fd2..e54f27536 100644 --- a/src/spawn_players.c +++ b/src/spawn_players.c @@ -1285,7 +1285,7 @@ void spawn_single_player_camera(u32 mode) { void spawn_multiplayer_cameras(u32 mode) { Camera* camera; - for (size_t i = 0; i < gPlayerCountSelection1; i++) { + for (size_t i = 0; i <= gPlayerCountSelection1; i++) { Vec3f spawn = {gPlayers[i].pos[0], gPlayers[i].pos[1], gPlayers[i].pos[2]}; camera = CM_AddCamera(spawn, gPlayers[i].rotation[1], mode); if (camera) { @@ -1296,7 +1296,7 @@ void spawn_multiplayer_cameras(u32 mode) { } - for (size_t i = 0; i < gPlayerCountSelection1; i++) { + for (size_t i = 0; i <= gPlayerCountSelection1; i++) { Vec3f spawn = {gPlayers[i].pos[0], gPlayers[i].pos[1], gPlayers[i].pos[2]}; camera = CM_AddLookBehindCamera(spawn, gPlayers[i].rotation[1], mode); if (camera) { @@ -1328,7 +1328,7 @@ void load_kart_textures(void) { static const size_t playerCounts[4] = { 8, 8, 4, 4 }; for (size_t i = 0; i < screens; i++) { - for (size_t ply = 0; ply < playerCounts[i]; ply++) { + for (size_t ply = 0; ply < playerCounts[gPlayerCountSelection1]; ply++) { func_8003CD98(&gPlayers[ply], D_8015F480[i].camera, ply, i); } } |
