Data is not part of the path
authornemo
Wed, 20 Sep 2017 11:00:43 -0400
changeset 12463 3af8d755de17
parent 12462 19e7838bedad
child 12464 06bf46238a89
Data is not part of the path
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Tue Sep 12 16:14:40 2017 -0400
+++ b/hedgewars/uScript.pas	Wed Sep 20 11:00:43 2017 -0400
@@ -3035,7 +3035,6 @@
                         inQuote := not inQuote;
                     if (lastChar = '-') and (mybuf[i] = '-') then
                         inComment := true;
-                    // gonna add any non-magic whitespace and skip - just to make comment avoidance easier
                     if not inComment and not inQuote and 
                         ((mybuf[i] = '(') or 
                         (mybuf[i] = ')') or 
@@ -3085,7 +3084,7 @@
 hedgewarsMountPackage(Str2PChar(copy(s, 1, length(s)-4)+'.hwp'));
 
 physfsReaderSetBuffer(@buf);
-if Pos('Data/Locale',s) <> 0 then
+if Pos('Locale/',s) <> 0 then
      ret:= lua_load(luaState, @ScriptLocaleReader, f, Str2PChar(s))
 else ret:= lua_load(luaState, @ScriptReader, f, Str2PChar(s));
 pfsClose(f);