From 682d6a9e44e583c088ed5970d69ef6bd9db7fd23 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 13 Jan 2005 02:55:05 +0000 Subject: Got rid of Allegro ok dialog completely. Now just the yes_no dialog remaining. --- src/configuration.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index bd8c3669..759a1fa9 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -42,7 +42,6 @@ void Configuration::init(std::string filename) { std::ifstream inFile(filename.c_str(), std::ifstream::in); std::string inBuffer; unsigned int position; - OptionValue optionTmp; iniOptions.clear(); @@ -57,10 +56,13 @@ void Configuration::init(std::string filename) { position = inBuffer.find(INI_DELIMITER, 0); - if (position != std::string::npos) { + if (position != std::string::npos) + { std::string key = inBuffer.substr(0, position); + OptionValue optionTmp; - if (inBuffer.length() > position + 1) { + if (inBuffer.length() > position + 1) + { optionTmp.stringValue = inBuffer.substr( position + 1, inBuffer.length()); optionTmp.numericValue = atof( -- cgit v1.2.3-60-g2f50