use LuaThreadVariable

This commit is contained in:
Glenn Maynard
2006-11-02 05:42:47 +00:00
parent 592c27996d
commit 524b2418c7
13 changed files with 36 additions and 43 deletions
+4 -3
View File
@@ -124,9 +124,10 @@ namespace ScreenManagerUtil
g_ScreenStack.push_back( ls );
/* Set the name of the loading screen. */
LUA->SetGlobal( "LoadingScreen", ls.m_pScreen->GetName() );
ls.m_pScreen->BeginScreen();
LUA->UnsetGlobal( "LoadingScreen" );
{
LuaThreadVariable var( "LoadingScreen", ls.m_pScreen->GetName() );
ls.m_pScreen->BeginScreen();
}
SCREENMAN->RefreshCreditsMessages();