summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
commit0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9 (patch)
treea07d923f09e8c9aa4a478e2bd572ab94edf09ae4 /src/main.cpp
parent148b62c05337eaaaf3a1ead212b3792122812cee (diff)
downloadmana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.gz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.bz2
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.xz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.zip
mantis id=118 - Added Item Shortcut Bar.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 613d78a7..5b7737d9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -48,6 +48,7 @@
#include "keyboardconfig.h"
#include "game.h"
#include "graphics.h"
+#include "itemshortcut.h"
#include "lockedarray.h"
#include "localplayer.h"
#include "log.h"
@@ -300,10 +301,12 @@ void init_engine(const Options &options)
bpp << " video mode: " << SDL_GetError() << std::endl;
exit(1);
}
-
// Initialize for drawing
graphics->_beginDraw();
+ // Initialize the item shortcuts.
+ itemShortcut = new ItemShortcut();
+
gui = new Gui(graphics);
state = UPDATE_STATE; /**< Initial game state */
@@ -328,6 +331,7 @@ void init_engine(const Options &options)
/** Clear the engine */
void exit_engine()
{
+ delete itemShortcut;
config.write();
delete gui;