From 954e64831c15ea0592e26a8c4ce893ae3b72c147 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Wed, 3 Mar 2021 01:44:41 -0600 Subject: [PATCH] fix some config shenanigans --- src/area_data.cpp | 1 + src/server.cpp | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/area_data.cpp b/src/area_data.cpp index a3a8b6d..a444c0a 100644 --- a/src/area_data.cpp +++ b/src/area_data.cpp @@ -39,6 +39,7 @@ AreaData::AreaData(QStringList characters, QString p_name, int p_index) QSettings config_ini("config/config.ini", QSettings::IniFormat); config_ini.beginGroup("Options"); int log_size = config_ini.value("logbuffer", 50).toInt(); + config_ini.endGroup(); if (log_size == 0) log_size = 500; logger = new Logger(log_size, this); diff --git a/src/server.cpp b/src/server.cpp index 23392d2..3996774 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -82,10 +82,6 @@ void Server::start() for (int i = 0; i < area_names.length(); i++) { QString area_name = area_names[i]; areas.insert(i, new AreaData(characters, area_name, i)); - areas_ini.beginGroup(area_name); - // TODO: more area config - areas[i]->background = areas_ini.value("background", "gs4").toString(); - areas_ini.endGroup(); } }