diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 02:33:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 02:33:10 +0000 |
commit | 90e2465d7d2c770707feeaebfebbe56bd76383f1 (patch) | |
tree | aa639d9f07d77989dca1ce7b2cf1a57a95a43c69 /src/station_gui.cpp | |
parent | 030f52e998b176087de5ad5f6b5c47a7e348bf16 (diff) | |
download | openttd-90e2465d7d2c770707feeaebfebbe56bd76383f1.tar.xz |
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 6e2f6a87b..4275e1243 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -233,7 +233,7 @@ protected: public: CompanyStationsWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { - this->caption_color = (byte)this->window_number; + this->owner = (Owner)this->window_number; this->vscroll.cap = 12; this->resize.step_height = 10; this->resize.height = this->height - 10 * 7; // minimum if 5 in the list @@ -711,7 +711,7 @@ struct StationViewWindow : public Window { StationViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { Owner owner = GetStation(window_number)->owner; - if (owner != OWNER_NONE) this->caption_color = owner; + if (owner != OWNER_NONE) this->owner = owner; this->vscroll.cap = 5; this->resize.step_height = 10; |