summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-16 21:34:51 +0000
committerDarkvater <darkvater@openttd.org>2007-01-16 21:34:51 +0000
commit0c9e65d8cc0651a4e2f3bffb2c0864549f78bb5b (patch)
tree4b7a36e05c85df088aa40e70f754e9631b5a3087
parent542f156091cc1ba58b65e1ca62cdd3497ef73aab (diff)
downloadopenttd-0c9e65d8cc0651a4e2f3bffb2c0864549f78bb5b.tar.xz
(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.
-rw-r--r--src/newgrf_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 288d06aba..f17839306 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -242,7 +242,7 @@ compatible_grf:
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);
}