--- a/src/newgrf_config.cpp Mon Jun 02 01:46:03 2008 +0000
+++ b/src/newgrf_config.cpp Wed Jun 04 22:34:45 2008 +0000
@@ -8,11 +8,12 @@
#include "variables.h"
#include "saveload.h"
#include "md5.h"
-#include "network/network_data.h"
#include "newgrf.h"
#include "newgrf_config.h"
#include "core/alloc_func.hpp"
#include "string_func.h"
+#include "gamelog.h"
+#include "network/network_type.h"
#include "fileio.h"
#include "fios.h"
@@ -231,6 +232,7 @@
/* Non-found has precedence over compatibility load */
if (res != GLC_NOT_FOUND) res = GLC_COMPATIBLE;
+ GamelogGRFCompatible(f);
goto compatible_grf;
}
@@ -238,6 +240,8 @@
md5sumToString(buf, lastof(buf), c->md5sum);
DEBUG(grf, 0, "NewGRF %08X (%s) not found; checksum %s", BSWAP32(c->grfid), c->filename, buf);
+ GamelogGRFRemove(c->grfid);
+
c->status = GCS_NOT_FOUND;
res = GLC_NOT_FOUND;
} else {