fix code (this is still wrong; it's using the StyleType and should be using

the style name)
This commit is contained in:
Glenn Maynard
2006-11-25 11:02:16 +00:00
parent cfb38c7d25
commit a49aa8d636
@@ -1,11 +1,12 @@
local style = GAMESTATE:GetCurrentStyle();
if not style then return Def.Actor {}; end
local s = StyleTypeToString( style:GetStyleType() );
local s = style:GetStyleType();
local Reverse = PlayerNumber:Reverse();
s = string.gsub(s, "StyleType_", "");
local t = LoadActor("_icon " .. s)() .. {
InitCommand = cmd(pause;setstate,Reverse[GAMESTATE:GetMasterPlayerNumber()]);
};
return t;
return t;