let each file register its own constants with Lua

This commit is contained in:
Chris Danford
2005-02-17 07:32:21 +00:00
parent 9c29426f5f
commit 8da09ebd6e
3 changed files with 13 additions and 2 deletions
-2
View File
@@ -282,8 +282,6 @@ void ThemeManager::UpdateLuaGlobals()
LUA->SetGlobal( "SCREEN_BOTTOM", (int) SCREEN_BOTTOM );
LUA->SetGlobal( "SCREEN_CENTER_X", (int) SCREEN_CENTER_X );
LUA->SetGlobal( "SCREEN_CENTER_Y", (int) SCREEN_CENTER_Y );
FOREACH_PlayerNumber( pn )
LUA->SetGlobal( ssprintf("PLAYER_%d",pn+1), pn );
/* Run all script files in Lua for all themes. Start from the deepest fallback
* theme and work outwards. */