MinecraftConsoles/Minecraft.Client/Windows64
MrTheShy 93f2d7335d Fix split-screen join failing when connecting to a remote host via UI
When a non-host client connected to a remote server through the in-game
UI (as opposed to the -ip/-port command line flags), the global variables
g_Win64MultiplayerIP and g_Win64MultiplayerPort were never updated from
their defaults ("127.0.0.1" and the default port). JoinSplitScreen()
relies on these globals to open a second TCP connection for the local
split-screen pad, so it would always attempt to connect to localhost,
failing immediately on any remote session.

Fix: update g_Win64MultiplayerIP and g_Win64MultiplayerPort inside
JoinGame() once the primary connection is established. This ensures
subsequent JoinSplitScreen() calls always reach the correct host
regardless of how the session was joined.

Additionally, guard PushFreeSmallId() against recycling smallIds in the
range [0, XUSER_MAX_COUNT), which are permanently reserved for the
host's local controller slots. Previously, if a host-side local pad
disconnected its smallId could re-enter the free pool and be handed
to an incoming remote client, causing that client's IQNetPlayer slot
to collide with a local pad slot on the non-host machine.
2026-03-09 11:20:53 +01:00
..
4JLibs Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
GameConfig Initial commit 2026-03-01 12:16:08 +08:00
Iggy Reject duplicate UIDs on login and remove noisy gdraw debug log (#1013) 2026-03-08 23:10:00 -05:00
Leaderboards Initial commit 2026-03-01 12:16:08 +08:00
Network Fix split-screen join failing when connecting to a remote host via UI 2026-03-09 11:20:53 +01:00
Sentient feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Social Initial commit 2026-03-01 12:16:08 +08:00
XML Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
KeyboardMouseInput.cpp Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
KeyboardMouseInput.h Add Chat / Pastes / Formatting (#682) 2026-03-06 09:52:28 -06:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.cpp Fix split-screen UI wrong positioning on window resize (#989) 2026-03-08 22:16:58 -05:00
Resource.h Initial commit 2026-03-01 12:16:08 +08:00
Windows64_App.cpp Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Windows64_App.h Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Windows64_Minecraft.cpp Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Windows64_UIController.cpp Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Windows64_UIController.h Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Windows64_Xuid.h Split screen, widescreen support, font rendering fixes, ui scaling fixes (#767) 2026-03-08 15:49:50 -05:00
Xbox_BuildVer.h Initial commit 2026-03-01 12:16:08 +08:00