Make target-lock a feature flag
This commit is contained in:
@@ -98,7 +98,8 @@ std::string help_text_rsrc = "help";
|
||||
std::map<std::string,std::vector<std::string>> 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 {
|
||||
|
@@ -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<location> enemy_locs_in_range;
|
||||
|
Reference in New Issue
Block a user