Skip to content

Splitscreen disconnection fix + mob null pointer checks.#1043

Open
DeveloperExotic wants to merge 1 commit intosmartcmd:mainfrom
DeveloperExotic:main
Open

Splitscreen disconnection fix + mob null pointer checks.#1043
DeveloperExotic wants to merge 1 commit intosmartcmd:mainfrom
DeveloperExotic:main

Conversation

@DeveloperExotic
Copy link
Contributor

Description

Fixes the instant disconnection that happens after connecting to an online game,
Including a null pointer check for mobs, which prevents the game from crashing.

Changes

Previous Behavior

Instant disconnection from a networked game

Root Cause

The local player is assigned smallId=1 by the server and stored in m_player[1]. The old code returned m_player[1] when checking user index 1 (the split screen slot) making the game think there was a second local player who wasnt signed in (making the client disconnect).

New Behavior

You wont disconnect, and the game wont crash.

AI Use Disclosure

No AI needed.

@MrTheShy
Copy link
Contributor

MrTheShy commented Mar 9, 2026

we should wait for the @kuwacom server to merge main, this breaks the non-host splitscreen. but this is nice in the meanwhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants