fix code (this is still wrong; it's using the StyleType and should be using
the style name)
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
local style = GAMESTATE:GetCurrentStyle();
|
local style = GAMESTATE:GetCurrentStyle();
|
||||||
if not style then return Def.Actor {}; end
|
if not style then return Def.Actor {}; end
|
||||||
|
|
||||||
local s = StyleTypeToString( style:GetStyleType() );
|
local s = style:GetStyleType();
|
||||||
local Reverse = PlayerNumber:Reverse();
|
local Reverse = PlayerNumber:Reverse();
|
||||||
|
s = string.gsub(s, "StyleType_", "");
|
||||||
|
|
||||||
local t = LoadActor("_icon " .. s)() .. {
|
local t = LoadActor("_icon " .. s)() .. {
|
||||||
InitCommand = cmd(pause;setstate,Reverse[GAMESTATE:GetMasterPlayerNumber()]);
|
InitCommand = cmd(pause;setstate,Reverse[GAMESTATE:GetMasterPlayerNumber()]);
|
||||||
|
|||||||
Reference in New Issue
Block a user