be much more conservative with file checksums for now

This commit is contained in:
mimooh 2016-11-13 14:58:16 +01:00
parent 7a6094cbf8
commit c19081e01d

View file

@ -217,7 +217,7 @@ int LuaLoadFile(const std::string &file, const std::string &strArg)
if (GetFileContent(file, content) == false) {
return -1;
}
if (file.rfind(".lua") != -1) {
if (file.rfind("stratagus.lua") != -1 && file.find("scripts/") != -1) {
FileChecksums ^= fletcher32(content);
}
const int status = luaL_loadbuffer(Lua, content.c_str(), content.size(), file.c_str());