From 5d299317326dd102a3ffadc9fcfd870f0efe20f8 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 18:26:43 +0100 Subject: Binds: allow multiple features to share the same key --- src/menu.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/menu.cpp b/src/menu.cpp index d628873..9537e05 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -503,17 +503,10 @@ static void menu_handle_input() { g_bind_mode = false; return; // cancel, keep old bind } - // any other key = new bind + // any other key = new bind (features may share the same bind) MenuNode *n = g_visible[g_selected]; - if (n->bind_ptr) { - // clear same bind from other features - FeatureState *features[] = {&g_bhop, &g_abh, &g_aimbot, &g_triggerbot, - &g_silentaim}; - for (auto *f : features) - if (&f->bind != n->bind_ptr && f->bind == i) - f->bind = 0; + if (n->bind_ptr) *n->bind_ptr = i; - } g_bind_mode = false; config_save(); rebuild_visible(); -- cgit v1.2.3