From 90e2465d7d2c770707feeaebfebbe56bd76383f1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Feb 2009 02:33:10 +0000 Subject: (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window --- src/company_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/company_gui.cpp') diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 26a0485a6..97c65776e 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -228,7 +228,7 @@ struct CompanyFinancesWindow : Window { Window(desc, company), small(show_small) { - this->caption_color = this->window_number; + this->owner = (Owner)this->window_number; if (show_stickied) this->flags4 |= WF_STICKY; @@ -458,7 +458,7 @@ private: public: SelectCompanyLiveryWindow(const WindowDesc *desc, CompanyID company) : Window(desc, company) { - this->caption_color = company; + this->owner = company; this->livery_class = LC_OTHER; this->sel = 1; this->LowerWidget(SCLW_WIDGET_CLASS_GENERAL); @@ -848,7 +848,7 @@ public: SelectCompanyManagerFaceWindow(const WindowDesc *desc, Window *parent, bool advanced, int top, int left) : Window(desc, parent->window_number) { this->parent = parent; - this->caption_color = this->window_number; + this->owner = (Owner)this->window_number; this->face = GetCompany((CompanyID)this->window_number)->face; this->advanced = advanced; @@ -1254,7 +1254,7 @@ struct CompanyWindow : Window CompanyWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { - this->caption_color = this->window_number; + this->owner = (Owner)this->window_number; this->FindWindowPlacementAndResize(desc); } -- cgit v1.2.3-70-g09d2