use HOOKS->UserQuit

This commit is contained in:
Glenn Maynard
2005-12-10 18:41:40 +00:00
parent 33ba805849
commit aa1f78ef91
+6 -1
View File
@@ -30,6 +30,11 @@ void ExitGame()
g_bQuitting = true;
}
static bool UserQuit()
{
return g_bQuitting || HOOKS->UserQuit();
}
void HandleInputEvents( float fDeltaTime );
@@ -59,7 +64,7 @@ static void CheckGameLoopTimerSkips( float fDeltaTime )
void GameLoop()
{
while( !g_bQuitting )
while( !UserQuit() )
{
/*
* Update