[ create a new paste ] login | about

Link: http://codepad.org/kcJZ2P9j    [ raw code | fork ]

Plain Text, pasted on Jul 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 4b9de488c..a5ee81a9c 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -108,8 +108,10 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
        // Use the highest version supported by both
        u8 depl_serial_v = std::min(client_max, our_max);
        // If it's lower than the lowest supported, give up.
+#if SER_FMT_VER_LOWEST_READ > 0
        if (depl_serial_v < SER_FMT_VER_LOWEST_READ)
                depl_serial_v = SER_FMT_VER_INVALID;
+#endif
 
        if (depl_serial_v == SER_FMT_VER_INVALID) {
                actionstream << "Server: A mismatched client tried to connect from " <<


Create a new paste based on this one


Comments: