add ps4 support
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "..\Minecraft.World\EntityIO.h"
|
||||
#if defined(_XBOX) || defined(_WINDOWS64) || defined(DISABLE_PSN)
|
||||
#include "Xbox\Network\NetworkPlayerXbox.h"
|
||||
#elif !defined(DISABLE_PSN) && defined(__PS3__) || defined(__ORBIS__)
|
||||
#elif !defined(DISABLE_PSN) && (defined(__PS3__) || defined(__ORBIS__))
|
||||
#include "Common\Network\Sony\NetworkPlayerSony.h"
|
||||
#endif
|
||||
|
||||
@@ -53,7 +53,7 @@ PlayerList::PlayerList(MinecraftServer *server)
|
||||
|
||||
//int viewDistance = server->settings->getInt(L"view-distance", 10);
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(DISABLE_PSN) || defined(_DISABLE_XBLIVE)
|
||||
maxPlayers = MINECRAFT_NET_MAX_PLAYERS;
|
||||
#else
|
||||
maxPlayers = server->settings->getInt(L"max-players", 20);
|
||||
@@ -94,7 +94,7 @@ void PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
|
||||
player->setPlayerGamePrivilege(Player::ePlayerGamePrivilege_HOST,1);
|
||||
}
|
||||
|
||||
#if !defined(DISABLE_PSN) && defined(__PS3__) || defined(__ORBIS__)
|
||||
#if !defined(DISABLE_PSN) && (defined(__PS3__) || defined(__ORBIS__))
|
||||
// PS3 networking library doesn't automatically assign PlayerUIDs to the network players for anything remote, so need to tell it what to set from the data in this packet now
|
||||
if( !g_NetworkManager.IsLocalGame() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user