color(): return a table instead of four values

This commit is contained in:
Glenn Maynard
2006-09-22 02:14:34 +00:00
parent 591ef06969
commit 6c398cf49d
+2 -6
View File
@@ -708,12 +708,8 @@ int LuaFunc_color( lua_State *L )
RString sColor = SArg(1);
RageColor c;
c.FromString( sColor );
LuaHelpers::Push( c.r, L );
LuaHelpers::Push( c.g, L );
LuaHelpers::Push( c.b, L );
LuaHelpers::Push( c.a, L );
return 4;
c.PushTable( L );
return 1;
}
static LuaFunctionList g_color( "color", LuaFunc_color ); /* register it */