1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #14330: join_server uses config default_port

This commit is contained in:
Cory Sanin
2021-03-20 08:09:47 -05:00
committed by GitHub
parent a018787c91
commit f1cd58c292
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- Fix: [#11829] Visual glitches and crashes when using RCT1 assets from mismatched or corrupt CSG1.DAT and CSG1i.DAT files.
- Fix: [#13894] Block brakes do not animate.
- Fix: [#14315] Crash when trying to rename Air Powered Vertical Coaster in Korean.
- Fix: [#14330] join_server uses default_port from config.
0.3.3 (2021-03-13)
------------------------------------------------------------------------

View File

@@ -520,7 +520,7 @@ static void server_list_get_item_button(int32_t buttonIndex, int32_t x, int32_t
static void join_server(std::string address)
{
int32_t port = gConfigNetwork.default_port;
int32_t port = NETWORK_DEFAULT_PORT;
auto beginBracketIndex = address.find('[');
auto endBracketIndex = address.find(']');
auto dotIndex = address.find('.');