hedgewars/uScript.pas
changeset 4883 7cddc9201a1d
parent 4882 b4c84db92d8f
child 4889 f71e30eb1d37
--- 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