diff options
author | truebrain <truebrain@openttd.org> | 2011-12-16 16:23:50 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-16 16:23:50 +0000 |
commit | 98d3f11d45c879b6cb0728c7a77fab349329abe8 (patch) | |
tree | ed784007a33a4f0320dbf07ef99b35a060f142f5 /src/newgrf_gui.cpp | |
parent | 2aa774e831ad1cb7849c998759449ef777c5c664 (diff) | |
download | openttd-98d3f11d45c879b6cb0728c7a77fab349329abe8.tar.xz |
(svn r23529) -Codechange: make all widget enum values unique and make them include the files they need to compile
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index ce18a1e61..8d49326a2 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1918,7 +1918,7 @@ static const NWidgetPart _nested_scan_progress_widgets[] = { NWidget(NWID_VERTICAL), SetPIP(11, 8, 11), NWidget(WWT_LABEL, INVALID_COLOUR), SetDataTip(STR_NEWGRF_SCAN_MESSAGE, STR_NULL), SetFill(1, 0), NWidget(WWT_EMPTY, INVALID_COLOUR, SPWW_PROGRESS_BAR), SetFill(1, 0), - NWidget(WWT_EMPTY, INVALID_COLOUR, GPWW_PROGRESS_TEXT), SetFill(1, 0), + NWidget(WWT_EMPTY, INVALID_COLOUR, SPWW_PROGRESS_TEXT), SetFill(1, 0), EndContainer(), EndContainer(), EndContainer(), @@ -1961,7 +1961,7 @@ struct ScanProgressWindow : public Window { break; } - case GPWW_PROGRESS_TEXT: + case SPWW_PROGRESS_TEXT: SetDParam(0, 9999); SetDParam(1, 9999); /* We really don't know the width. We could determine it by scanning the NewGRFs, @@ -1985,7 +1985,7 @@ struct ScanProgressWindow : public Window { break; } - case GPWW_PROGRESS_TEXT: + case SPWW_PROGRESS_TEXT: SetDParam(0, this->scanned); SetDParam(1, _settings_client.gui.last_newgrf_count); DrawString(r.left, r.right, r.top, STR_NEWGRF_SCAN_STATUS, TC_FROMSTRING, SA_HOR_CENTER); |