Fixing bug in receiver pose getter, was acting as a setter because the network...

Fixing bug in receiver pose getter, was acting as a setter because the network transmission was calling the wrong VA method (thanks Ernesto Accolti from INAUT, Argentina)
parent 62aee243
......@@ -2311,9 +2311,11 @@ void CVANetNetworkProtocol::ServerGetSoundReceiverPose()
{
CVANetMessage* pMsg = ServerGetMessage();
const int iID = pMsg->ReadInt();
const VAVec3 v3Pos = pMsg->ReadVec3();
const VAQuat qOrient = pMsg->ReadQuat();
m_pRealCore->SetSoundReceiverPose( iID, v3Pos, qOrient );
VAVec3 v3Pos;
VAQuat qOrient;
m_pRealCore->GetSoundReceiverPose( iID, v3Pos, qOrient );
pMsg->WriteVec3( v3Pos );
pMsg->WriteQuat( qOrient );
}
void CVANetNetworkProtocol::ClientSetSoundReceiverPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
......@@ -2329,11 +2331,9 @@ void CVANetNetworkProtocol::ServerSetSoundReceiverPose()
{
CVANetMessage* pMsg = ServerGetMessage();
const int iID = pMsg->ReadInt();
VAVec3 v3Pos;
VAQuat qOrient;
m_pRealCore->GetSoundReceiverPose( iID, v3Pos, qOrient );
pMsg->WriteVec3( v3Pos );
pMsg->WriteQuat( qOrient );
const VAVec3 v3Pos = pMsg->ReadVec3();
const VAQuat qOrient = pMsg->ReadQuat();
m_pRealCore->SetSoundReceiverPose( iID, v3Pos, qOrient );
}
VAVec3 CVANetNetworkProtocol::ClientGetSoundReceiverPosition( const int iID )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment