Commit 409c253
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 6bf8baa commit 409c253
2 files changed
+4
-0
lines changed| 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