* Join button on a Company is clicked. * @param w The instance of this window. * @param pt The point where this button was clicked. * @param company_id The company this button was assigned to. */
| 1568 | * @param company_id The company this button was assigned to. |
| 1569 | */ |
| 1570 | static void OnClickCompanyJoin([[maybe_unused]] NetworkClientListWindow *w, [[maybe_unused]] Point pt, CompanyID company_id) |
| 1571 | { |
| 1572 | if (_network_server) { |
| 1573 | NetworkServerDoMove(CLIENT_ID_SERVER, company_id); |
| 1574 | MarkWholeScreenDirty(); |
| 1575 | } else { |
| 1576 | NetworkClientRequestMove(company_id); |
| 1577 | } |
| 1578 | } |
| 1579 | |
| 1580 | /** |
| 1581 | * Create new company button is clicked. |
nothing calls this directly
no test coverage detected