From 4ebb8e890c3b5ce104ae42cf54c87bd0221aa2e1 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 3 Mar 2025 06:23:47 -0600 Subject: [PATCH] Make target-lock a feature flag --- src/game/boe.main.cpp | 3 ++- src/game/boe.newgraph.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 4ebad1b8..97f8d1f1 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -98,7 +98,8 @@ std::string help_text_rsrc = "help"; std::map> feature_flags = { // Legacy behavior of the T debug action (used by some replays) // does not change the party's outdoors location - {"debug-enter-town", {"move-outdoors"}} + {"debug-enter-town", {"move-outdoors"}}, + {"target-lock", {"V1"}} }; struct cParseEntrance { diff --git a/src/game/boe.newgraph.cpp b/src/game/boe.newgraph.cpp index 7068b4c1..91f25561 100644 --- a/src/game/boe.newgraph.cpp +++ b/src/game/boe.newgraph.cpp @@ -1040,7 +1040,7 @@ short scan_for_response(const char *str) { void handle_target_mode(eGameMode target_mode, int range) { overall_mode = target_mode; // Lock on to enemies in range: - if(get_bool_pref("TargetLock", true)){ + if(has_feature_flag("target-lock", "V1") && get_bool_pref("TargetLock", true)){ location loc = univ.current_pc().combat_pos; std::vector enemy_locs_in_range;