prepare code for dedicated server support

This commit is contained in:
NOTPIES committed 2026-03-08 22:13:19 -03:00
1 parent 6b89993c04
commit 00f6df9605
14 files changed
+161 -23

No files matched your search

+4
View File
@@ -236,6 +236,10 @@ void PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
//server->players->broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(L"�e" + playerEntity->name + L" joined the game.") ) );
broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(player->name, ChatPacket::e_ChatPlayerJoinedGame) ) );
#ifdef _DEDICATED_SERVER
app.DebugPrintf("%ls joined the game", player->name.c_str());
#endif
MemSect(14);
add(player);
MemSect(0);