summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-22 09:05:24 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-22 09:05:24 +0000
commit353560a2829fb9b1d9d26121658ce83589c4f5ef (patch)
treea4eeb6f2f4f6d7eacdea7016fa8df034efd6788c /src/main.cpp
parenta444a76ed37a52ba0004298f2512bee1c75273bc (diff)
downloadmana-client-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.gz
mana-client-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.bz2
mana-client-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.xz
mana-client-353560a2829fb9b1d9d26121658ce83589c4f5ef.zip
Added close button and item shortcut backgrounds to files that will be
installed.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5b7737d9..e179fd32 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -301,6 +301,7 @@ void init_engine(const Options &options)
bpp << " video mode: " << SDL_GetError() << std::endl;
exit(1);
}
+
// Initialize for drawing
graphics->_beginDraw();
@@ -324,14 +325,16 @@ void init_engine(const Options &options)
logger->log("Warning: %s", err);
}
- //Initialize keyboard
+ // Initialize keyboard
keyboard.init();
}
/** Clear the engine */
void exit_engine()
{
+ // Before config.write() since it writes the shortcuts to the config
delete itemShortcut;
+
config.write();
delete gui;