From: cloudwalk Date: Tue, 16 Jun 2020 16:37:27 +0000 (+0000) Subject: Prepend unbindall to config.cfg to override default.cfg binds X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ee7eb4214acd3559f562287dde6f13afea9f2587;p=xonotic%2Fdarkplaces.git Prepend unbindall to config.cfg to override default.cfg binds The engine will now respect the user's binds, even if they're all blank. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12685 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 76586635..e78a1c12 100644 --- a/keys.c +++ b/keys.c @@ -1641,6 +1641,9 @@ Key_WriteBindings (qfile_t *f) char tinystr[2]; const char *p; + // Override default binds + FS_Printf(f, "unbindall\n"); + for (j = 0; j < MAX_BINDMAPS; j++) { for (i = 0; i < (int)(sizeof(keybindings[0])/sizeof(keybindings[0][0])); i++)