diff options
author | glx <glx@openttd.org> | 2008-05-15 19:24:15 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-15 19:24:15 +0000 |
commit | 07e10eade87bb980901d16f0358ff7ca36811209 (patch) | |
tree | 7fc1031afeebd3c14ab3b7801a4b5dfd03526df0 /src/network/network_gui.cpp | |
parent | d87fc4d5340c126d2306969be262ba091b187068 (diff) | |
download | openttd-07e10eade87bb980901d16f0358ff7ca36811209.tar.xz |
(svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 55a1853f8..b4c2e0c33 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1932,8 +1932,9 @@ enum NetworkCompanyPasswordWindowWidgets { }; struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow { - NetworkCompanyPasswordWindow(const WindowDesc *desc) : QueryStringBaseWindow(desc) + NetworkCompanyPasswordWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc) { + this->parent = parent; this->afilter = CS_ALPHANUMERAL; InitializeTextBuffer(&this->text, this->edit_str_buf, min(lengthof(_network_default_company_pass), lengthof(this->edit_str_buf)), 0); @@ -2021,11 +2022,11 @@ static const WindowDesc _ncp_window_desc = { NULL }; -void ShowNetworkCompanyPasswordWindow() +void ShowNetworkCompanyPasswordWindow(Window *parent) { DeleteWindowById(WC_COMPANY_PASSWORD_WINDOW, 0); - new NetworkCompanyPasswordWindow(&_ncp_window_desc); + new NetworkCompanyPasswordWindow(&_ncp_window_desc, parent); } #endif /* ENABLE_NETWORK */ |