From 0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9 Mon Sep 17 00:00:00 2001 From: Joshua Langley Date: Tue, 21 Aug 2007 15:11:19 +0000 Subject: mantis id=118 - Added Item Shortcut Bar. --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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; -- cgit v1.2.3-70-g09d2