Skip to content

Commit 2af680c

Browse files
committed
CL_FillServerCommand: remove demo special case
A special case to allow demos to request bad command ranges is not needed. The gamestate generated when starting the demo sets the serverCommandSequence number appropriately, so the demo replay will be able to request the correct range.
1 parent 9ceed9c commit 2af680c

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/engine/client/cl_cgame.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ void CL_FillServerCommands(std::vector<std::string>& commands, int start, int en
256256
// if we have irretrievably lost a reliable command, drop the connection
257257
if ( start <= clc.serverCommandSequence - MAX_RELIABLE_COMMANDS )
258258
{
259-
// when a demo record was started after the client got a whole bunch of
260-
// reliable commands then the client never got those first reliable commands
261-
if ( clc.demoplaying )
262-
{
263-
return;
264-
}
265-
266259
Sys::Drop( "CL_FillServerCommand: a reliable command was cycled out" );
267260
}
268261

0 commit comments

Comments
 (0)