mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 04:04:09 +01:00
(svn r22601) [1.1] -Backport from trunk:
- Add: Makefile support for bundling pdb and running regressions with the MSVC makefile (r22581, r22580, r22576) - Fix: Do not show cargo accepted/produced in the new station window when no tiles are selected (mouse hovering a window or toolbar) [FS#4647] (r22595, r22593) - Fix: Add active NewGRFs to the list of available ones when selecting the empty preset [FS#4644] (r22594) - Fix: Reading of heightmaps with uncommon BMP formats failed due to uninitialised variables [FS#4645] (r22592)
This commit is contained in:
@@ -1005,12 +1005,9 @@ struct NewGRFWindow : public QueryStringBaseWindow {
|
||||
this->preset = index;
|
||||
|
||||
if (index != -1) {
|
||||
GRFConfig *c = LoadGRFPresetFromConfig(_grf_preset_list[index]);
|
||||
|
||||
this->active_sel = NULL;
|
||||
this->actives = c;
|
||||
this->avails.ForceRebuild();
|
||||
this->actives = LoadGRFPresetFromConfig(_grf_preset_list[index]);
|
||||
}
|
||||
this->avails.ForceRebuild();
|
||||
|
||||
DeleteWindowByClass(WC_GRF_PARAMETERS);
|
||||
this->active_sel = NULL;
|
||||
|
||||
Reference in New Issue
Block a user