diff options
| author | untodesu <kirill@untode.su> | 2025-09-12 16:15:32 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-12 16:15:32 +0500 |
| commit | 522a7514012da86f7b9643179f0763746f3b232e (patch) | |
| tree | 7c4ea8f03b6778572d59784dc28b600e3f8f2268 /game/server/status.cc | |
| parent | f210a86c1406ccc6dfd6f14181dd7a1274ee0de4 (diff) | |
| download | voxelius-522a7514012da86f7b9643179f0763746f3b232e.tar.bz2 voxelius-522a7514012da86f7b9643179f0763746f3b232e.zip | |
Protocol and versioning changes
Diffstat (limited to 'game/server/status.cc')
| -rw-r--r-- | game/server/status.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/game/server/status.cc b/game/server/status.cc index ba1d59d..0edd0a0 100644 --- a/game/server/status.cc +++ b/game/server/status.cc @@ -4,6 +4,8 @@ #include "core/config/number.hh"
+#include "core/version.hh"
+
#include "shared/protocol.hh"
#include "shared/splash.hh"
@@ -13,10 +15,12 @@ static void on_status_request_packet(const protocol::StatusRequest& packet)
{
protocol::StatusResponse response;
- response.version = protocol::VERSION;
+ response.game_version_major = version::major;
response.max_players = sessions::max_players.get_value();
response.num_players = sessions::num_players;
response.motd = splash::get();
+ response.game_version_minor = version::minor;
+ response.game_version_patch = version::patch;
protocol::send(packet.peer, protocol::encode(response));
}
|
