[Orxonox-commit 548] r3091 - trunk/src/orxonox
rgrieder at orxonox.net
rgrieder at orxonox.net
Wed May 27 21:35:51 CEST 2009
Author: rgrieder
Date: 2009-05-27 21:35:51 +0200 (Wed, 27 May 2009)
New Revision: 3091
Modified:
trunk/src/orxonox/GraphicsManager.cc
Log:
Hitting the X-Button of the window actually stops orxonox now.
Modified: trunk/src/orxonox/GraphicsManager.cc
===================================================================
--- trunk/src/orxonox/GraphicsManager.cc 2009-05-27 15:23:51 UTC (rev 3090)
+++ trunk/src/orxonox/GraphicsManager.cc 2009-05-27 19:35:51 UTC (rev 3091)
@@ -61,6 +61,7 @@
#include "core/ConfigValueIncludes.h"
#include "core/CoreIncludes.h"
#include "core/Core.h"
+#include "core/Game.h"
#include "core/GameMode.h"
#include "tools/WindowEventListener.h"
#include "tools/ParticleInterface.h"
@@ -439,6 +440,6 @@
}
void OgreWindowEventListener::windowClosed(Ogre::RenderWindow* rw)
{
- // TODO: Notify the right class to shut down the Game
+ Game::getInstance().stop();
}
}
More information about the Orxonox-commit
mailing list