Skip to content

Commit

Permalink
Ignore key bindings when downloading
Browse files Browse the repository at this point in the history
Bindings aren't supposed to be executed when disconnected from a server,
but the client needs to be in the CA_CONNECTED state in order for the
game code to display the download progress menu (even though we're not
actually connected), hence the issue.

Fixes #20
  • Loading branch information
mickael9 committed Feb 11, 2018
1 parent 11a2b74 commit 77e7012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/cl_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ void CL_ParseBinding( int key, qboolean down, unsigned time )
char buf[ MAX_STRING_CHARS ], *p = buf, *end;
qboolean allCommands, allowUpCmds;

if( clc.state == CA_DISCONNECTED && Key_GetCatcher( ) == 0 )
if( (clc.state == CA_DISCONNECTED || *clc.downloadName) && Key_GetCatcher( ) == 0 )
return;
if( !keys[key].binding || !keys[key].binding[0] )
return;
Expand Down

0 comments on commit 77e7012

Please sign in to comment.