Commit c8fa4ae
committed
Discard old server commands upon new 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.1 parent 8e991ae commit c8fa4ae
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
412 | 415 | | |
413 | 416 | | |
414 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
0 commit comments