Commit 9dde0e08 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

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() ...@@ -2311,9 +2311,11 @@ void CVANetNetworkProtocol::ServerGetSoundReceiverPose()
{ {
CVANetMessage* pMsg = ServerGetMessage(); CVANetMessage* pMsg = ServerGetMessage();
const int iID = pMsg->ReadInt(); const int iID = pMsg->ReadInt();
const VAVec3 v3Pos = pMsg->ReadVec3(); VAVec3 v3Pos;
const VAQuat qOrient = pMsg->ReadQuat(); VAQuat qOrient;
m_pRealCore->SetSoundReceiverPose( iID, v3Pos, 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 ) void CVANetNetworkProtocol::ClientSetSoundReceiverPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
...@@ -2329,11 +2331,9 @@ void CVANetNetworkProtocol::ServerSetSoundReceiverPose() ...@@ -2329,11 +2331,9 @@ void CVANetNetworkProtocol::ServerSetSoundReceiverPose()
{ {
CVANetMessage* pMsg = ServerGetMessage(); CVANetMessage* pMsg = ServerGetMessage();
const int iID = pMsg->ReadInt(); const int iID = pMsg->ReadInt();
VAVec3 v3Pos; const VAVec3 v3Pos = pMsg->ReadVec3();
VAQuat qOrient; const VAQuat qOrient = pMsg->ReadQuat();
m_pRealCore->GetSoundReceiverPose( iID, v3Pos, qOrient ); m_pRealCore->SetSoundReceiverPose( iID, v3Pos, qOrient );
pMsg->WriteVec3( v3Pos );
pMsg->WriteQuat( qOrient );
} }
VAVec3 CVANetNetworkProtocol::ClientGetSoundReceiverPosition( const int iID ) 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