From e30a91e8f7d52b07de4dcb7191e9eac43b4e0acc Mon Sep 17 00:00:00 2001 From: in1tiate Date: Tue, 2 Mar 2021 21:58:41 -0600 Subject: [PATCH] fix previously nonfunctional area protection --- src/area_data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/area_data.cpp b/src/area_data.cpp index 3996c40..a3a8b6d 100644 --- a/src/area_data.cpp +++ b/src/area_data.cpp @@ -24,10 +24,10 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index) for (QString cur_char : characters) { characters_taken.insert(cur_char, false); } - QSettings areas_ini("areas.ini", QSettings::IniFormat); + QSettings areas_ini("config/areas.ini", QSettings::IniFormat); areas_ini.beginGroup(p_name); background = areas_ini.value("background", "gs4").toString(); - is_protected = areas_ini.value("protected_area").toString().startsWith("true"); + is_protected = areas_ini.value("protected_area").toBool(); areas_ini.endGroup(); player_count = 0; locked = FREE;