feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ unsigned char NetworkPlayerXbox::GetSmallId()
|
||||
return m_qnetPlayer->GetSmallId();
|
||||
}
|
||||
|
||||
void NetworkPlayerXbox::SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority)
|
||||
void NetworkPlayerXbox::SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority, bool ack)
|
||||
{
|
||||
DWORD flags;
|
||||
flags = QNET_SENDDATA_RELIABLE | QNET_SENDDATA_SEQUENTIAL;
|
||||
@@ -20,6 +20,11 @@ void NetworkPlayerXbox::SendData(INetworkPlayer *player, const void *pvData, int
|
||||
m_qnetPlayer->SendData(((NetworkPlayerXbox *)player)->m_qnetPlayer, pvData, dataSize, flags);
|
||||
}
|
||||
|
||||
int NetworkPlayerXbox::GetOutstandingAckCount()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool NetworkPlayerXbox::IsSameSystem(INetworkPlayer *player)
|
||||
{
|
||||
return ( m_qnetPlayer->IsSameSystem(((NetworkPlayerXbox *)player)->m_qnetPlayer) == TRUE );
|
||||
@@ -119,3 +124,19 @@ IQNetPlayer *NetworkPlayerXbox::GetQNetPlayer()
|
||||
return m_qnetPlayer;
|
||||
}
|
||||
|
||||
void NetworkPlayerXbox::SentChunkPacket()
|
||||
{
|
||||
m_lastChunkPacketTime = System::currentTimeMillis();
|
||||
}
|
||||
|
||||
int NetworkPlayerXbox::GetTimeSinceLastChunkPacket_ms()
|
||||
{
|
||||
// If we haven't ever sent a packet, return maximum
|
||||
if( m_lastChunkPacketTime == 0 )
|
||||
{
|
||||
return INT_MAX;
|
||||
}
|
||||
|
||||
__int64 currentTime = System::currentTimeMillis();
|
||||
return (int)( currentTime - m_lastChunkPacketTime );
|
||||
}
|
||||
Reference in New Issue
Block a user