summaryrefslogtreecommitdiffstats
path: root/game/server/status.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
committeruntodesu <kirill@untode.su>2025-09-11 15:48:53 +0500
commitd0fbd68055e3f4a796330cc8acc6c0954b5327ff (patch)
treee581014ea02711efa5e71f00f9862e5bca58f2ed /game/server/status.cc
parentcbd823aa2154a956e7da4319eecbf7afc10441ae (diff)
downloadvoxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.tar.bz2
voxelius-d0fbd68055e3f4a796330cc8acc6c0954b5327ff.zip
Run clang-format across the project
Diffstat (limited to 'game/server/status.cc')
-rw-r--r--game/server/status.cc52
1 files changed, 26 insertions, 26 deletions
diff --git a/game/server/status.cc b/game/server/status.cc
index ed73b23..ba1d59d 100644
--- a/game/server/status.cc
+++ b/game/server/status.cc
@@ -1,26 +1,26 @@
-#include "server/pch.hh"
-
-#include "server/status.hh"
-
-#include "core/config/number.hh"
-
-#include "shared/protocol.hh"
-#include "shared/splash.hh"
-
-#include "server/globals.hh"
-#include "server/sessions.hh"
-
-static void on_status_request_packet(const protocol::StatusRequest& packet)
-{
- protocol::StatusResponse response;
- response.version = protocol::VERSION;
- response.max_players = sessions::max_players.get_value();
- response.num_players = sessions::num_players;
- response.motd = splash::get();
- protocol::send(packet.peer, protocol::encode(response));
-}
-
-void status::init(void)
-{
- globals::dispatcher.sink<protocol::StatusRequest>().connect<&on_status_request_packet>();
-}
+#include "server/pch.hh"
+
+#include "server/status.hh"
+
+#include "core/config/number.hh"
+
+#include "shared/protocol.hh"
+#include "shared/splash.hh"
+
+#include "server/globals.hh"
+#include "server/sessions.hh"
+
+static void on_status_request_packet(const protocol::StatusRequest& packet)
+{
+ protocol::StatusResponse response;
+ response.version = protocol::VERSION;
+ response.max_players = sessions::max_players.get_value();
+ response.num_players = sessions::num_players;
+ response.motd = splash::get();
+ protocol::send(packet.peer, protocol::encode(response));
+}
+
+void status::init(void)
+{
+ globals::dispatcher.sink<protocol::StatusRequest>().connect<&on_status_request_packet>();
+}