@@ -754,15 +754,13 @@ void DoScanNewGRFFiles(void *callback)
}
to_sort[num - 1]->next = NULL;
_all_grfs = to_sort[0];
free(to_sort);
#ifdef ENABLE_NETWORK
NetworkAfterNewGRFScan();
#endif
_modal_progress_work_mutex->EndCritical();
_modal_progress_paint_mutex->BeginCritical();
/* Yes... these are the NewGRF windows */
@@ -823,14 +821,12 @@ const GRFConfig *FindGRFConfig(uint32 gr
if (best == NULL || c->version > best->version) best = c;
return best;
/** Structure for UnknownGRFs; this is a lightweight variant of GRFConfig */
struct UnknownGRF : public GRFIdentifier {
UnknownGRF *next; ///< The next unknown GRF.
GRFTextWrapper *name; ///< Name of the GRF.
};
@@ -874,15 +870,12 @@ GRFTextWrapper *FindUnknownGRFName(uint3
memcpy(grf->md5sum, md5sum, sizeof(grf->md5sum));
unknown_grfs = grf;
return grf->name;
#endif /* ENABLE_NETWORK */
/**
* Retrieve a NewGRF from the current config by its grfid.
* @param grfid grf to look for.
* @param mask GRFID mask to allow for partial matching.
* @return The grf config, if it exists, else \c NULL.
*/