summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-20 17:02:28 +0200
committertpart <tpart120@proton.me>2024-07-20 17:02:40 +0200
commitc4840fc9ddd54a1ce9546f0d7bdd5ae9c4b5c9dd (patch)
treee835b4100f374ef52e54616ced7203b7fe5c4124
parentc6733caa49e5b47c68c43b494c073ce7b34adec2 (diff)
downloadhurrycurry-c4840fc9ddd54a1ce9546f0d7bdd5ae9c4b5c9dd.tar
hurrycurry-c4840fc9ddd54a1ce9546f0d7bdd5ae9c4b5c9dd.tar.bz2
hurrycurry-c4840fc9ddd54a1ce9546f0d7bdd5ae9c4b5c9dd.tar.zst
Don't show error message when minor protocol versions don't match under certain conditions
-rw-r--r--client/multiplayer.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index d40c00d7..064ffa70 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -101,7 +101,7 @@ func handle_packet(bytes: PackedByteArray):
"version":
var major = decoded["major"]
var minor = decoded["minor"]
- if major != VERSION_MAJOR or minor != VERSION_MINOR:
+ if major != VERSION_MAJOR and minor >= VERSION_MINOR:
socket.close()
connected = false
connection_closed.emit(tr("Server and client versions do not match. Server: %d.%d, Client: %d.%d.\nAre you sure the game is up to date?") % [major, minor, VERSION_MAJOR, VERSION_MINOR])