1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-24 05:32:59 +01:00

(svn r7950) -Backport from trunk (r7760, r7766):

- Sprite usage debug message showed the starting sprite, not current sprite, and only do this during activation (r7760).
 - [OSX] Remove incorrect debug message about missing grf files.
This commit is contained in:
Darkvater
2007-01-07 12:11:54 +00:00
parent bae0695ac9
commit 1277599c30
2 changed files with 19 additions and 2 deletions

View File

@@ -121,6 +121,20 @@ static bool FileMD5(const MD5File file, bool warn)
}
#endif
#if defined SECOND_DATA_DIR
/* If we failed to find the file in the first data directory, we will try the other one */
if (f == NULL) {
snprintf(buf, lengthof(buf), "%s%s", _paths.second_data_dir, file.filename);
f = fopen(buf, "rb");
if (f == NULL) {
strtolower(buf + strlen(_paths.second_data_dir) - 1);
f = fopen(buf, "rb");
}
}
#endif
if (f != NULL) {
md5_state_t filemd5state;
md5_byte_t buffer[1024];