src/newgrf_config.cpp
changeset 5885 262234e81333
parent 5860 7fdc9b423ba1
child 5897 016df903f3bb
equal deleted inserted replaced
5884:be0c8467aeb4 5885:262234e81333
   203 
   203 
   204 	for (c = _grfconfig; c != NULL; c = c->next) {
   204 	for (c = _grfconfig; c != NULL; c = c->next) {
   205 		const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
   205 		const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
   206 		if (f == NULL) {
   206 		if (f == NULL) {
   207 			char buf[512], *p = buf;
   207 			char buf[512], *p = buf;
   208 			uint i;
       
   209 
   208 
   210 			p += snprintf(p, lastof(buf) - p, "Couldn't find NewGRF %08X (%s) checksum ", BSWAP32(c->grfid), c->filename);
   209 			p += snprintf(p, lastof(buf) - p, "Couldn't find NewGRF %08X (%s) checksum ", BSWAP32(c->grfid), c->filename);
   211 			for (i = 0; i < lengthof(c->md5sum); i++) {
   210 			md5sumToString(p, lastof(buf), c->md5sum);
   212 				p += snprintf(p, lastof(buf) - p, "%02X", c->md5sum[i]);
       
   213 			}
       
   214 			ShowInfo(buf);
   211 			ShowInfo(buf);
   215 
   212 
   216 			res = false;
   213 			res = false;
   217 		} else {
   214 		} else {
   218 			DEBUG(grf, 1, "Loading GRF %08X from '%s'", BSWAP32(c->grfid), f->filename);
   215 			DEBUG(grf, 1, "Loading GRF %08X from '%s'", BSWAP32(c->grfid), f->filename);