Skip to content

Commit c820166

Browse files
chief1983claude
andauthored
Fix multi sync screen showing wrong player status for non-host players (scp-fs2open#7359)
Net_player[idx] (pointer arithmetic from current player) was used instead of Net_players[idx] (global array index), causing the status display to read from wrong offsets. This coincidentally worked for the host at index 0 but showed incorrect status for all other players — most visibly on standalone servers where no client is at index 0. Fixes scp-fs2open#7358 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7826b96 commit c820166

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/network/multiui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7821,7 +7821,7 @@ void multi_sync_blit_screen_all()
78217821
// display his name and status
78227822
multi_sync_display_name(Net_players[idx].m_player->callsign,count,idx);
78237823

7824-
multi_sync_display_status(multi_sync_get_state_string(&Net_player[idx]).c_str(), count);
7824+
multi_sync_display_status(multi_sync_get_state_string(&Net_players[idx]).c_str(), count);
78257825
count++;
78267826
}
78277827
}

0 commit comments

Comments
 (0)