1
0
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:
rubidium
2011-06-18 19:43:51 +00:00
parent 0b02b285a8
commit 725d00630f
5 changed files with 25 additions and 12 deletions

View File

@@ -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;