Changeset 5850 for code/branches/core5/src/orxonox/gamestates/GSGraphics.cc
- Timestamp:
- Oct 1, 2009, 11:44:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/gamestates/GSGraphics.cc
r5842 r5850 46 46 #include "core/Loader.h" 47 47 #include "core/XMLFile.h" 48 #include "overlays/InGameConsole.h"49 #include "sound/SoundManager.h"50 48 51 49 // HACK: … … 58 56 GSGraphics::GSGraphics(const GameStateInfo& info) 59 57 : GameState(info) 60 , console_(0)61 , soundManager_(0)62 58 , masterKeyBinder_(0) 63 59 , masterInputState_(0) … … 100 96 masterKeyBinder_->loadBindings("masterKeybindings.ini"); 101 97 102 // Load the SoundManager103 soundManager_ = new SoundManager();104 105 // Load the InGameConsole106 console_ = new InGameConsole();107 console_->initialise();108 109 98 // add console command to toggle GUI 110 99 this->ccToggleGUI_ = createConsoleCommand(createFunctor(&GSGraphics::toggleGUI, this), "toggleGUI"); … … 131 120 */ 132 121 133 this->console_->destroy();134 135 122 Loader::unload(this->debugOverlay_); 136 123 delete this->debugOverlay_; 137 138 this->soundManager_->destroy();139 124 140 125 // HACK: (destroys a resource smart pointer) … … 170 155 Game::getInstance().requestState("mainMenu"); 171 156 } 172 173 this->console_->update(time);174 157 } 175 158 }
Note: See TracChangeset
for help on using the changeset viewer.