aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/NationalFocus.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-27 12:56:46 +0100
committer hop311 <hop3114@gmail.com>2024-10-29 23:55:10 +0100
commit9a5468ceb4361059fcefae1a383a7c29b4f4e7be (patch)
tree4ff826fd008548cb79f71df83c422388a24de0da /src/openvic-simulation/politics/NationalFocus.cpp
parent309deb6a5b28c8e2b24e73d06f1418bb992b4cd7 (diff)
Rename `scope_t` enum to `scope_type_t`
Diffstat (limited to 'src/openvic-simulation/politics/NationalFocus.cpp')
-rw-r--r--src/openvic-simulation/politics/NationalFocus.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/politics/NationalFocus.cpp b/src/openvic-simulation/politics/NationalFocus.cpp
index 2427d7c..b60b3f5 100644
--- a/src/openvic-simulation/politics/NationalFocus.cpp
+++ b/src/openvic-simulation/politics/NationalFocus.cpp
@@ -117,6 +117,8 @@ bool NationalFocusManager::load_national_foci_file(
[this, &group, &pop_manager, &ideology_manager, &good_definition_manager, &modifier_manager](
std::string_view identifier, ast::NodeCPtr node
) -> bool {
+ using enum scope_type_t;
+
uint8_t icon = 0;
bool has_flashpoint = false, own_provinces = true, outliner_show_as_percent = false;
fixed_point_t flashpoint_tension = 0;
@@ -127,7 +129,7 @@ bool NationalFocusManager::load_national_foci_file(
fixed_point_map_t<GoodDefinition const*> encourage_goods;
fixed_point_map_t<PopType const*> encourage_pop_types;
ConditionScript limit {
- scope_t::PROVINCE | scope_t::COUNTRY, scope_t::PROVINCE | scope_t::COUNTRY, scope_t::NO_SCOPE
+ PROVINCE | COUNTRY, PROVINCE | COUNTRY, NO_SCOPE
};
const auto expect_base_province_modifier_cb = modifier_manager.expect_base_province_modifier(modifiers);