]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Prepend unbindall to config.cfg to override default.cfg binds
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Jun 2020 16:37:27 +0000 (16:37 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Jun 2020 16:37:27 +0000 (16:37 +0000)
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

keys.c

diff --git a/keys.c b/keys.c
index 76586635fb67353569209d5cba9d4f73f527b5dd..e78a1c12c1e5b9085ab94466e4d1754cd5c08354 100644 (file)
--- 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++)