update Stage

This commit is contained in:
Glenn Maynard
2006-09-26 05:08:52 +00:00
parent f46eadb5fd
commit 14b51a70d7
3 changed files with 6 additions and 14 deletions
+2 -11
View File
@@ -421,18 +421,9 @@ static const char *StageNames[] = {
"Event",
"Demo",
};
XToString( Stage, NUM_STAGES );
static void LuaStage(lua_State* L)
{
FOREACH_Stage( st )
{
RString s = StageNames[st];
s.MakeUpper();
LUA->SetGlobal( "STAGE_"+s, st );
}
}
REGISTER_WITH_LUA_FUNCTION( LuaStage );
XToString( Stage, NUM_Stage );
LuaXToString( Stage );
LuaXType( Stage, NUM_Stage, "Stage_" );
static const char *MultiPlayerStatusNames[] = {