move RegisterTypes

This commit is contained in:
Glenn Maynard
2005-02-28 07:20:03 +00:00
parent faa11c580b
commit d37a167688
+4 -4
View File
@@ -1092,10 +1092,6 @@ int main(int argc, char* argv[])
MESSAGEMAN = new MessageManager;
STATSMAN = new StatsManager;
// UGLY: Now that all global singletons are constructed so that they, let them
// all register with Lua.
LUA->RegisterTypes();
SAFE_DELETE( loading_window ); // destroy this before init'ing Display
DISPLAY = CreateDisplay();
@@ -1136,6 +1132,10 @@ int main(int argc, char* argv[])
FONT = new FontManager;
SCREENMAN = new ScreenManager;
// UGLY: Now that all global singletons are constructed so that they, let them
// all register with Lua.
LUA->RegisterTypes();
/* People may want to do something else while songs are loading, so do
* this after loading songs. */
if( ChangeAppPri() )