summaryrefslogtreecommitdiffstats
path: root/game/server
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-16 22:19:39 +0500
committeruntodesu <kirill@untode.su>2025-03-16 22:19:39 +0500
commitd1d7521ee859f10e99fb3f82e710c8bbeb7c41c5 (patch)
tree900e6a537bd5763636db8497404d3b28e6afcef2 /game/server
parent68b0b663514d1a5dcf79cfbdeea544b5d69ed1ed (diff)
downloadvoxelius-d1d7521ee859f10e99fb3f82e710c8bbeb7c41c5.tar.bz2
voxelius-d1d7521ee859f10e99fb3f82e710c8bbeb7c41c5.zip
Fix the bizzare CRC32 callback I forgot to remove
- This fixes bother not working - Separated client and server splashes - Added server splashes
Diffstat (limited to 'game/server')
-rw-r--r--game/server/game.cc5
-rw-r--r--game/server/status.cc1
2 files changed, 2 insertions, 4 deletions
diff --git a/game/server/game.cc b/game/server/game.cc
index 9d690f2..cc5baf8 100644
--- a/game/server/game.cc
+++ b/game/server/game.cc
@@ -48,7 +48,7 @@ void server_game::init(void)
whitelist::init();
- splash::init();
+ splash::init_server();
status::init();
@@ -72,8 +72,7 @@ void server_game::init_late(void)
address.port = listen_port.get_value();
globals::server_host = enet_host_create(&address, sessions::max_players.get_value() + status_peers.get_value(), 1, 0, 0);
- globals::server_host->checksum = &enet_crc32;
-
+
if(!globals::server_host) {
spdlog::critical("game: unable to setup an ENet host");
std::terminate();
diff --git a/game/server/status.cc b/game/server/status.cc
index 0b8660b..e44a4f4 100644
--- a/game/server/status.cc
+++ b/game/server/status.cc
@@ -11,7 +11,6 @@
static void on_status_request_packet(const protocol::StatusRequest &packet)
{
- spdlog::info("STATUS REQUEST");
protocol::StatusResponse response;
response.version = protocol::VERSION;
response.max_players = sessions::max_players.get_value();