summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-09-08 09:48:52 +0000
committerrubidium <rubidium@openttd.org>2011-09-08 09:48:52 +0000
commit414c397000935162df4641dbe0c056b39d32205e (patch)
tree017dc3d94c6c765e1ba9fa28e46f536b7ec1b384 /src/ai
parent92244f1663367a14051578daa4120c748b1ba9f4 (diff)
downloadopenttd-414c397000935162df4641dbe0c056b39d32205e.tar.xz
(svn r22904) -Codechange: add tar filename to file scanning
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_scanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index aa4e5190a..100147f5a 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -378,7 +378,7 @@ struct AIFileChecksumCreator : FileScanner {
}
/* Add the file and calculate the md5 sum. */
- virtual bool AddFile(const char *filename, size_t basepath_length)
+ virtual bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename)
{
Md5 checksum;
uint8 buffer[1024];
@@ -446,7 +446,7 @@ static bool IsSameAI(const ContentInfo *ci, bool md5sum, AIFileInfo *info)
/* Create the full path name, */
seprintf(path, lastof(path), "%s%c%s", tar->second.tar_filename, PATHSEPCHAR, tar->first.c_str());
- checksum.AddFile(path, 0);
+ checksum.AddFile(path, 0, NULL);
}
} else {
/* Add the path sep char back when searching a directory, so we are