summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
commit2c7d0b3518d72a7ab0726b72f7d2137e5944f049 (patch)
tree7080b1e32df54b8b44875df3609e94888939eb89 /src/configuration.cpp
parent529ba0581833b05921d8dc3336b02a3c6abd511a (diff)
downloadmana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.gz
mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.bz2
mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.xz
mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.zip
Made our drawImage() method respect the clip area from the guichan graphics part. Removed some (now) obsolete code. Fixed compilation errors.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 5e21ee5a..0b43418f 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -24,15 +24,17 @@
#include "configuration.h"
+#include <math.h>
#include <sstream>
#include <libxml/xmlwriter.h>
#include "configlistener.h"
#include "log.h"
-void Configuration::init(const std::string &filename):
- mConfigPath(filename)
+void Configuration::init(const std::string &filename)
{
+ mConfigPath = filename;
+
// Do not attempt to read config from non-existant file
FILE *testFile = fopen(filename.c_str(), "r");
if (!testFile) {