redundant now
authornemo
Thu, 07 Apr 2011 14:13:11 -0400
changeset 5120 c4d5ddf939fc
parent 5119 f475e10c4081
child 5121 2d34ec60992c
redundant now
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Thu Apr 07 21:43:43 2011 +0400
+++ b/hedgewars/uScript.pas	Thu Apr 07 14:13:11 2011 -0400
@@ -1559,7 +1559,6 @@
     st : TSound;
     he : THogEffect;
     cg : TCapGroup;
-    s, t : ansistring;
 begin
 // initialize lua
 luaState:= lua_open;
@@ -1575,11 +1574,7 @@
 ScriptSetInteger('LAND_WIDTH', LAND_WIDTH);
 ScriptSetInteger('LAND_HEIGHT', LAND_HEIGHT);
 
-// import locale
-s:= cLocaleFName;
-t:= '';
-SplitByChar(s, t, '.');
-ScriptSetString('L', s);
+ScriptSetString('L', cLocale);
 
 // import game flags
 ScriptSetInteger('gfForts', gfForts);