Skip to content

Ensure player assets are removed/transfered after they quit on DC menu - #203

Merged
x64-dev merged 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:Send-destroy-player-for-DC-menu-quit
Jan 4, 2026
Merged

Ensure player assets are removed/transfered after they quit on DC menu#203
x64-dev merged 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
MrS-ibra:Send-destroy-player-for-DC-menu-quit

Conversation

@MrS-ibra

@MrS-ibra MrS-ibra commented Jan 3, 2026

Copy link
Copy Markdown

When a player quit using the dc menu (quit game button), the game only sent a disconnect message that removed the player from the match, but it never told the other clients to actually destroy that player’s units. Because of that, the quitting player’s army stayed on the map for everyone else.
This fix checks if the player who sent the disconnect is the same player being disconnected. If so, it means they quit on purpose, so we send the normal “destroy player” command before disconnecting them. That makes all clients clean up the player’s units (or transfer to teammates) just like a regular quit

@x64-dev
x64-dev merged commit 5710484 into GeneralsOnlineDevelopmentTeam:main Jan 4, 2026
5 checks passed
@MrS-ibra
MrS-ibra deleted the Send-destroy-player-for-DC-menu-quit branch January 23, 2026 02:46
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