Skip to content

Discard old server commands upon new gamestate#1954

Open
slipher wants to merge 1 commit intoDaemonEngine:masterfrom
slipher:configstring-fix
Open

Discard old server commands upon new gamestate#1954
slipher wants to merge 1 commit intoDaemonEngine:masterfrom
slipher:configstring-fix

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Apr 8, 2026

Fixes Unvanquished/Unvanquished#1102.

This fixes a bug where the configstring state could be wrong due to cs server commands being executed out of order with respect to game state processing. Server commands are only processed when the cgame requests a snapshot, so commands received before the client loads the current map which were sent before the gamestate could be processed after the gamestate.

Fixes Unvanquished/Unvanquished#1102.

This fixes a bug where the configstring state could be wrong due to `cs`
server commands being executed out of order with respect to game state
processing. Server commands are only processed when the cgame requests a
snapshot, so commands received before the client loads the current map
which were sent before the gamestate could be processed after the
gamestate.

Of course there are other commands besides setting configstrings. In
general, processing a command from a previous game seems very likely to
be a bad idea and unlikely to be good.
@slipher slipher force-pushed the configstring-fix branch from ae4f051 to 409c253 Compare April 8, 2026 22:36
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.

Scoreboard stucked open when mapchange occurs during connecting

1 participant