diff options
Diffstat (limited to 'src/game/GameController.cpp')
| -rw-r--r-- | src/game/GameController.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index 7df654f..73e59a5 100644 --- a/src/game/GameController.cpp +++ b/src/game/GameController.cpp @@ -70,7 +70,8 @@ GameController::GameController(): search(NULL), renderOptions(NULL), loginWindow(NULL), - ssave(NULL) + ssave(NULL), + console(NULL) { gameView = new GameView(); gameModel = new GameModel(); @@ -78,6 +79,9 @@ GameController::GameController(): gameView->AttachController(this); gameModel->AddObserver(gameView); + commandInterface = new TPTScriptInterface(); + commandInterface->AttachGameModel(gameModel); + //sim = new Simulation(); } @@ -312,7 +316,8 @@ void GameController::OpenDisplayOptions() void GameController::ShowConsole() { - console = new ConsoleController(NULL); + if(!console) + console = new ConsoleController(NULL, commandInterface); ui::Engine::Ref().ShowWindow(console->GetView()); } |
