(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.
authorDarkvater
Tue, 16 Jan 2007 21:34:51 +0000
changeset 5952 701521003c56
parent 5951 9dfa5b0116e4
child 5953 7000c5bdd70b
(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.
src/newgrf_config.cpp
--- a/src/newgrf_config.cpp	Tue Jan 16 20:16:30 2007 +0000
+++ b/src/newgrf_config.cpp	Tue Jan 16 21:34:51 2007 +0000
@@ -242,7 +242,7 @@
 			if (!HASBIT(c->flags, GCF_COPY)) {
 				free(c->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->info == NULL) c->info = strdup(f->info);
 			}