mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-06 00:01:31 +00:00
prepare code for dedicated server support
This commit is contained in:
1 parent
6b89993c04
commit
00f6df9605
14 files changed
+161
-23
No files matched your search
@@ -790,10 +790,12 @@ int CGameNetworkManager::JoinFromInvite_SignInReturned(void *pParam,bool bContin
|
||||
|
||||
void CGameNetworkManager::UpdateAndSetGameSessionData(INetworkPlayer *pNetworkPlayerLeaving)
|
||||
{
|
||||
#ifndef _DEDICATED_SERVER
|
||||
Minecraft *pMinecraft = Minecraft::GetInstance();
|
||||
TexturePack *tPack = pMinecraft->skins->getSelected();
|
||||
s_pPlatformNetworkManager->SetSessionTexturePackParentId( tPack->getDLCParentPackId() );
|
||||
s_pPlatformNetworkManager->SetSessionSubTexturePackId( tPack->getDLCSubPackId() );
|
||||
#endif
|
||||
|
||||
s_pPlatformNetworkManager->UpdateAndSetGameSessionData( pNetworkPlayerLeaving );
|
||||
}
|
||||
@@ -1421,6 +1423,7 @@ void CGameNetworkManager::CreateSocket( INetworkPlayer *pNetworkPlayer, bool loc
|
||||
// Add this user to the game server if the game is started already
|
||||
if( g_NetworkManager.IsHost() && g_NetworkManager.IsInGameplay() )
|
||||
{
|
||||
app.DebugPrintf("Adding incoming socket for smallId=%d\n", pNetworkPlayer->GetSmallId());
|
||||
Socket::addIncomingSocket(socket);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user