From 32badd4b6f843cb74fdc3238fe92119518c8c0ab Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 16 Mar 2006 15:50:00 +0000 Subject: A bunch of cosmetic changes. --- src/main.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2