(svn r17379) -Codechange: make the performance rating window nested, although it still needs some improvements

This commit is contained in:
rubidium
2009-09-02 13:24:36 +00:00
parent 05433adb6d
commit efff517449
2 changed files with 71 additions and 109 deletions

View File

@@ -57,6 +57,7 @@ Company::Company(uint16 name_1, bool is_ai) :
is_ai(is_ai)
{
for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR;
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, -1);
}
Company::~Company()
@@ -69,6 +70,7 @@ Company::~Company()
DeleteCompanyWindows(this->index);
InvalidateWindowData(WC_GRAPH_LEGEND, 0, this->index);
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, this->index);
}
/**