|
@@ -36,7 +36,7 @@ function StartGame.SetupGame(event,document)
|
|
|
--some lua trickery coming up. Compiling a string at runtime that will return the values,
|
|
--some lua trickery coming up. Compiling a string at runtime that will return the values,
|
|
|
--because they are comma separated. For example, if the user chose "Denim", then the
|
|
--because they are comma separated. For example, if the user chose "Denim", then the
|
|
|
--compiled string would look like "return 21,96,189"
|
|
--compiled string would look like "return 21,96,189"
|
|
|
- local red,green,blue = loadstring('return '..event.parameters['colour']) ()
|
|
|
|
|
|
|
+ local red,green,blue = load('return '..event.parameters['colour']) ()
|
|
|
Game.SetDefenderColour(Colourb.new(red,green,blue,255))
|
|
Game.SetDefenderColour(Colourb.new(red,green,blue,255))
|
|
|
|
|
|
|
|
local elem = Window.LoadMenu('game',document):GetElementById('game')
|
|
local elem = Window.LoadMenu('game',document):GetElementById('game')
|