diff options
author | frosch <frosch@openttd.org> | 2017-01-07 21:28:03 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-01-07 21:28:03 +0000 |
commit | 4df712589c0786295238f5b915cb1c53939a94c2 (patch) | |
tree | 414308e56cccb200483751f484c978275b304b25 /src | |
parent | b363a639aaf0259c27e5d3a6efa6399de526565a (diff) | |
download | openttd-4df712589c0786295238f5b915cb1c53939a94c2.tar.xz |
(svn r27724) -Cleanup: Remove pointless usage of IsOpenTTDBaseGRF. System GRFs are never listed in the NewGRF GUI.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index cc63f7b57..eac36c3cf 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1279,7 +1279,6 @@ struct NewGRFWindow : public Window, NewGRFScanCallback { /* All widgets are now enabled, so disable widgets we can't use */ if (this->active_sel == this->actives) this->DisableWidget(WID_NS_MOVE_UP); if (this->active_sel->next == NULL) this->DisableWidget(WID_NS_MOVE_DOWN); - if (this->active_sel->IsOpenTTDBaseGRF()) this->DisableWidget(WID_NS_REMOVE); } this->SetWidgetDisabledState(WID_NS_PRESET_DELETE, this->preset == -1); |