diff -r 552db509979e735a527d3b967b6d9fd1cccacedf -r 82c54cdf1b671bc7b11fec4914fca281723ada45 axios/Engine/AxiosGameScreen.cs --- a/axios/Engine/AxiosGameScreen.cs Sat May 26 18:50:49 2012 -0500 +++ b/axios/Engine/AxiosGameScreen.cs Sat May 26 18:57:16 2012 -0500 @@ -41,6 +41,10 @@ private Camera camera; +#if WINDOWS + AxiosCommandConsole _console = null; +#endif + public AxiosGameScreen() : base() { @@ -95,6 +99,20 @@ public void AddGameObject(object obj) { +#if WINDOWS + if (obj is AxiosCommandConsole) + { + if (_console != null) + { + //remove the current one first + ScreenManager.Game.Components.Remove(_console); + _console.Dispose(); + _console = null; + } + _console = (AxiosCommandConsole)obj; + ScreenManager.Game.Components.Add(_console); + } +#endif if (obj is AxiosGameObject || obj is AxiosUIObject || obj is AxiosTimer) { AxiosGameObject tmp = obj as AxiosGameObject;