diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-16 15:50:00 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-16 15:50:00 +0000 |
commit | 32badd4b6f843cb74fdc3238fe92119518c8c0ab (patch) | |
tree | ade2ace7f5ef62ae9fd14c6409d9c2df43a2348b /src/main.cpp | |
parent | 65ccfccfc1e35a2e65638aea61c46e4e51bd874e (diff) | |
download | mana-32badd4b6f843cb74fdc3238fe92119518c8c0ab.tar.gz mana-32badd4b6f843cb74fdc3238fe92119518c8c0ab.tar.bz2 mana-32badd4b6f843cb74fdc3238fe92119518c8c0ab.tar.xz mana-32badd4b6f843cb74fdc3238fe92119518c8c0ab.zip |
A bunch of cosmetic changes.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index de41bb14..e3fbdca6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -210,15 +210,11 @@ void init_engine() if (tmwFile == NULL) { // We reopen the file in write mode and we create it tmwFile = fopen(configPath.c_str(), "wt"); - if (tmwFile == NULL) { - std::cout << "Can't create " << configPath << ". Using Defaults." << std::endl; - } - else { - fclose(tmwFile); - config.init(configPath); - } } - else { + if (tmwFile == NULL) { + std::cout << "Can't create " << configPath << ". " + "Using Defaults." << std::endl; + } else { fclose(tmwFile); config.init(configPath); } @@ -267,7 +263,7 @@ void init_engine() playerset = resman->createSpriteset( "graphics/sprites/player_male_base.png", 64, 64); if (!playerset) logger->error("Couldn't load player spriteset!"); - + for (int i=0; i < NR_HAIR_STYLES; i++) { std::stringstream filename; |