src/newgrf_config.cpp
changeset 5634 ba6b9ebe197a
parent 5609 dc6a58930ba4
child 5646 e94c63712efe
equal deleted inserted replaced
5633:e1905dacc378 5634:ba6b9ebe197a
   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);