--- a/hedgewars/uScript.pas Sat Jan 29 14:54:08 2011 -0500
+++ b/hedgewars/uScript.pas Sat Jan 29 21:16:09 2011 +0100
@@ -1307,6 +1307,8 @@
ScriptSetString('Map', '');
ScriptSetString('Theme', '');
+ScriptSetString('Goals', '');
+
ScriptCall('onGameInit');
// pop game variables
@@ -1330,6 +1332,7 @@
ParseCommand('map ' + ScriptGetString('Map'), true);
if ScriptGetString('Theme') <> '' then
ParseCommand('theme ' + ScriptGetString('Theme'), true);
+LuaGoals:= ScriptGetString('Goals');
if ScriptExists('onAmmoStoreInit') then
begin