be much more conservative with file checksums for now
This commit is contained in:
parent
7a6094cbf8
commit
c19081e01d
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue