summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-18 09:54:47 +0200
committerPatric Stout <github@truebrain.nl>2021-04-24 21:43:58 +0200
commit526635942451479bee66e9eb61c50f91ae48a7dd (patch)
tree34a757634102f384eb2e70ae1044dd86916243f9 /src/company_cmd.cpp
parentaca20092aadd65a764f1ea493c36f0ca507b32ff (diff)
downloadopenttd-526635942451479bee66e9eb61c50f91ae48a7dd.tar.xz
Feature: rework in-game Online Players GUI
The GUI now more clearly shows some basic information about the server you joined, your client name (and the ability to change it), and what players are in which company. It also contains useful buttons to press to join companies, chat with other people, and for admins to kick/ban people. Additionally, renamed "advertised" to "visibility"; this has to do with future additions, but also because it is more clear in wording.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index ab9e7e12e..c3483a9bf 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -571,8 +571,8 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY)
GeneratePresidentName(c);
SetWindowDirty(WC_GRAPH_LEGEND, 0);
- SetWindowClassesDirty(WC_CLIENT_LIST_POPUP);
- SetWindowDirty(WC_CLIENT_LIST, 0);
+ InvalidateWindowClassesData(WC_CLIENT_LIST_POPUP);
+ InvalidateWindowData(WC_CLIENT_LIST, 0);
InvalidateWindowData(WC_LINKGRAPH_LEGEND, 0);
BuildOwnerLegend();
InvalidateWindowData(WC_SMALLMAP, 0, 1);