src/newgrf_config.cpp
changeset 5652 c26cb37e4ef4
parent 5648 ad4a0b4b699f
child 5675 bbc57cf5cf18
equal deleted inserted replaced
5651:79496e6d8a56 5652:c26cb37e4ef4
   208 	GCF_Flags res = GCF_ACTIVATED;
   208 	GCF_Flags res = GCF_ACTIVATED;
   209 
   209 
   210 	for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
   210 	for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
   211 		const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
   211 		const GRFConfig *f = FindGRFConfig(c->grfid, c->md5sum);
   212 		if (f == NULL) {
   212 		if (f == NULL) {
   213 			char buf[256], *p = buf;
   213 			char buf[256];
   214 
   214 
   215 			/* If we have not found the exactly matching GRF try to find one with the
   215 			/* If we have not found the exactly matching GRF try to find one with the
   216 			 * same grfid, as it most likely is compatible */
   216 			 * same grfid, as it most likely is compatible */
   217 			f = FindGRFConfig(c->grfid);
   217 			f = FindGRFConfig(c->grfid);
   218 			if (f != NULL) {
   218 			if (f != NULL) {