From 0d8f6f26ce066dd77ec0cbc7251c64ac565d7082 Mon Sep 17 00:00:00 2001 From: Lari Nieminen Date: Sat, 22 Aug 2015 22:18:07 +0300 Subject: [PATCH] Supplement +Disable with +Disable: , to allow the table to enable binds disabled by default --- code/controlconfig/controlsconfigcommon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/controlconfig/controlsconfigcommon.cpp b/code/controlconfig/controlsconfigcommon.cpp index afab9a4c63f..d08e3bfe519 100644 --- a/code/controlconfig/controlsconfigcommon.cpp +++ b/code/controlconfig/controlsconfigcommon.cpp @@ -889,6 +889,9 @@ void control_config_common_load_overrides() if (optional_string("+Disable")) { r_ccConfig.disabled = true; } + if (optional_string("$Disable:")) { + stuff_boolean(&r_ccConfig.disabled); + } // Nerf the buffer now. szTempBuffer[0] = '\0';