hedgewars/uScript.pas
changeset 5897 0e0fc7e08a3d
parent 5825 a6eab1b7c00d
child 5899 0c3db82e9f4d
equal deleted inserted replaced
5895:212d3b459658 5897:0e0fc7e08a3d
  1807 luaopen_table(luaState);
  1807 luaopen_table(luaState);
  1808 
  1808 
  1809 // import some variables
  1809 // import some variables
  1810 ScriptSetInteger('LAND_WIDTH', LAND_WIDTH);
  1810 ScriptSetInteger('LAND_WIDTH', LAND_WIDTH);
  1811 ScriptSetInteger('LAND_HEIGHT', LAND_HEIGHT);
  1811 ScriptSetInteger('LAND_HEIGHT', LAND_HEIGHT);
       
  1812 ScriptSetInteger('topY', topY);
       
  1813 ScriptSetInteger('leftX', leftX);
       
  1814 ScriptSetInteger('rightX', rightX); 
  1812 
  1815 
  1813 ScriptSetString('L', cLocale);
  1816 ScriptSetString('L', cLocale);
  1814 
  1817 
  1815 // import game flags
  1818 // import game flags
  1816 ScriptSetInteger('gfForts', gfForts);
  1819 ScriptSetInteger('gfForts', gfForts);