Update spawn_players.c (#582)

This commit is contained in:
MegaMech 2025-12-07 13:52:02 -07:00 committed by GitHub
parent 6585333092
commit 1e0de1057f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}