summaryrefslogtreecommitdiffstats
path: root/game/client/session.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-12 16:15:32 +0500
committeruntodesu <kirill@untode.su>2025-09-12 16:15:32 +0500
commit522a7514012da86f7b9643179f0763746f3b232e (patch)
tree7c4ea8f03b6778572d59784dc28b600e3f8f2268 /game/client/session.cc
parentf210a86c1406ccc6dfd6f14181dd7a1274ee0de4 (diff)
downloadvoxelius-522a7514012da86f7b9643179f0763746f3b232e.tar.bz2
voxelius-522a7514012da86f7b9643179f0763746f3b232e.zip
Protocol and versioning changes
Diffstat (limited to 'game/client/session.cc')
-rw-r--r--game/client/session.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/game/client/session.cc b/game/client/session.cc
index 907b789..ce3d616 100644
--- a/game/client/session.cc
+++ b/game/client/session.cc
@@ -6,6 +6,8 @@
#include "core/math/crc64.hh"
+#include "core/version.hh"
+
#include "shared/entity/head.hh"
#include "shared/entity/player.hh"
#include "shared/entity/transform.hh"
@@ -284,11 +286,13 @@ void session::disconnect(std::string_view reason)
void session::send_login_request(void)
{
protocol::LoginRequest packet;
- packet.version = protocol::VERSION;
+ packet.game_version_major = version::major;
packet.voxel_registry_checksum = world::voxel_registry::get_checksum();
packet.item_registry_checksum = world::item_registry::get_checksum();
packet.password_hash = server_password_hash;
packet.username = client_game::username.get();
+ packet.game_version_minor = version::minor;
+ packet.game_version_patch = version::patch;
protocol::send(session::peer, protocol::encode(packet));