forked from mirror/OpenTTD
(svn r8165) -Revert r8107 and show the MD5SUM of the *REPLACEMENT* grf file, NOT the original one. Reason for this is that this md5sum is saved, and otherwise a wrong md5sum would be stored in a savegame.
This commit is contained in:
@@ -242,7 +242,7 @@ compatible_grf:
|
|||||||
if (!HASBIT(c->flags, GCF_COPY)) {
|
if (!HASBIT(c->flags, GCF_COPY)) {
|
||||||
free(c->filename);
|
free(c->filename);
|
||||||
c->filename = strdup(f->filename);
|
c->filename = strdup(f->filename);
|
||||||
/*memcpy(c->md5sum, f->md5sum, sizeof(c->md5sum));*/
|
memcpy(c->md5sum, f->md5sum, sizeof(c->md5sum));
|
||||||
if (c->name == NULL) c->name = strdup(f->name);
|
if (c->name == NULL) c->name = strdup(f->name);
|
||||||
if (c->info == NULL) c->info = strdup(f->info);
|
if (c->info == NULL) c->info = strdup(f->info);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user