diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-18 14:49:39 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-04-25 21:27:54 +0200 |
commit | d6000c2ec5f61c599d8859b981f2dac6a92e0755 (patch) | |
tree | 41418504a0c6e9701295228873bfc2c6d66fe313 /src/network/core/tcp.cpp | |
parent | 8b302761d4ca51f41eaff4097c9afa4f3aec5ec5 (diff) | |
download | openttd-d6000c2ec5f61c599d8859b981f2dac6a92e0755.tar.xz |
Codechange: differentiate between UDP, TCP and compatibility MTU values
Diffstat (limited to 'src/network/core/tcp.cpp')
-rw-r--r-- | src/network/core/tcp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp index be70efdd2..72e66a0b5 100644 --- a/src/network/core/tcp.cpp +++ b/src/network/core/tcp.cpp @@ -126,7 +126,7 @@ Packet *NetworkTCPSocketHandler::ReceivePacket() if (!this->IsConnected()) return nullptr; if (this->packet_recv == nullptr) { - this->packet_recv = new Packet(this, SEND_MTU); + this->packet_recv = new Packet(this, TCP_MTU); } Packet *p = this->packet_recv; |