diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 11:59:48 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 11:59:48 +0000 |
commit | 73555b3f837099e413bc85d8c559dd2bf7fd50b7 (patch) | |
tree | 7ed55fb8d6261a05cea262f0abfd08d113cb8156 /src | |
parent | 72a1107e594b1745026241d323f9fc44813bd91d (diff) | |
download | mana-73555b3f837099e413bc85d8c559dd2bf7fd50b7.tar.gz mana-73555b3f837099e413bc85d8c559dd2bf7fd50b7.tar.bz2 mana-73555b3f837099e413bc85d8c559dd2bf7fd50b7.tar.xz mana-73555b3f837099e413bc85d8c559dd2bf7fd50b7.zip |
- minor fixes for ini creation/writing
Diffstat (limited to 'src')
-rw-r--r-- | src/configuration.cpp | 2 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 0b1f24a7..dc6aa448 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -72,7 +72,7 @@ bool Configuration::Write(std::string filename) { if(optionTmp.numericValue == 0) { out.write(optionTmp.stringValue.c_str(), optionTmp.stringValue.length()); }else{ - sprintf(tmp, "%19f", optionTmp.numericValue); + sprintf(tmp, "%f", optionTmp.numericValue); out.write(tmp, strlen(tmp)); strcpy(tmp, ""); } diff --git a/src/main.cpp b/src/main.cpp index 68f5cb2a..a73e04a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -199,6 +199,8 @@ void init_engine() { config.setValue("stretch", 1); config.setValue("remember", 1); config.setValue("username", "Player"); + + config.Write(dir); } } |