Browse Source

Fix plNetClient.

Darryl Pogue 13 years ago
parent
commit
e7319c8ab2
  1. 5
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp
  2. 3
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp
  3. 1
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrVoice.cpp
  4. 4
      Sources/Plasma/PubUtilLib/plNetClient/plNetClientMsgHandler.cpp
  5. 16
      Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp
  6. 3
      Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp

5
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.cpp

@ -461,7 +461,8 @@ void plNetClientMgr::StartLinkInFX()
plLinkEffectsTriggerMsg* lem = new plLinkEffectsTriggerMsg();
lem->SetLeavingAge(false); // linking in
lem->SetLinkKey(fLocalPlayerKey);
lem->SetLinkInAnimKey(avMod->GetLinkInAnimKey());
plKey animKey = avMod->GetLinkInAnimKey();
lem->SetLinkInAnimKey(animKey);
// indicate if we are invisible
if (avMod && avMod->IsInStealthMode() && avMod->GetTarget(0))
@ -1287,7 +1288,7 @@ void plNetClientMgr::QueueDisableNet (bool showDlg, const char str[]) {
msg->Ref();
fDisableMsg = msg;
IDisableNet();
#endif;
#endif
}
void plNetClientMgr::IDisableNet () {

3
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrSend.cpp

@ -163,7 +163,8 @@ void plNetClientMgr::ISendCCRPetition(plCCRPetitionMsg* petMsg)
// write config info formatted like an ini file to a buffer
hsRAMStream ram;
info.WriteTo( &plIniStreamConfigSource( &ram ) );
plIniStreamConfigSource src(&ram);
info.WriteTo(&src);
int size = ram.GetPosition();
ram.Rewind();
std::string buf;

1
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgrVoice.cpp

@ -41,6 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include <algorithm>
#include <float.h>
#include "hsMatrix44.h"
#include "hsGeometry3.h"
#include "plNetClientMgr.h"

4
Sources/Plasma/PubUtilLib/plNetClient/plNetClientMsgHandler.cpp

@ -402,8 +402,8 @@ MSG_HANDLER_DEFN(plNetClientMsgHandler,plNetMsgVoice)
int bufLen = m->GetVoiceDataLen();
const char* buf = m->GetVoiceData();
BYTE flags = m->GetFlags();
BYTE numFrames = m->GetNumFrames();
uint8_t flags = m->GetFlags();
uint8_t numFrames = m->GetNumFrames();
plKey key = NULL;
// plKey key=hsgResMgr::ResMgr()->FindKey(m->ObjectInfo()->GetUoid());

16
Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp

@ -912,8 +912,10 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void)
//--------------------------------------------------------------------
// BASIC LINK. Link to a unique instance of the age, if no instance specified.
case plNetCommon::LinkingRules::kBasicLink:
if (!info->HasAgeInstanceGuid())
info->SetAgeInstanceGuid(&plUUID(GuidGenerate()));
if (!info->HasAgeInstanceGuid()) {
plUUID newuuid(GuidGenerate());
info->SetAgeInstanceGuid(&newuuid);
}
break;
//--------------------------------------------------------------------
@ -952,7 +954,8 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void)
info->SetAgeDescription(desc.c_str());
}
if (!info->HasAgeInstanceGuid()) {
info->SetAgeInstanceGuid(&plUUID(GuidGenerate()));
plUUID newuuid(GuidGenerate());
info->SetAgeInstanceGuid(&newuuid);
}
// register this as an owned age now before we link to it.
@ -992,7 +995,8 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void)
}
if (!info->HasAgeInstanceGuid()) {
info->SetAgeInstanceGuid(&plUUID(GuidGenerate()));
plUUID newuuid(GuidGenerate());
info->SetAgeInstanceGuid(&newuuid);
}
VaultRegisterOwnedAge(link);
@ -1078,10 +1082,10 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void)
case hsFail:
success = kLinkFailed;
break;
case FALSE:
case false:
success = kLinkDeferred;
break;
case TRUE:
case true:
success = kLinkImmediately;
}

3
Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp

@ -171,7 +171,8 @@ void plAgeInfoStruct::CopyFrom(const NetAgeInfo & info) {
StrToAnsi(tmp, info.ageDesc, arrsize(tmp));
SetAgeDescription(tmp);
SetAgeInstanceGuid(&plUUID(info.ageInstId));
plUUID inst(info.ageInstId);
SetAgeInstanceGuid(&inst);
SetAgeSequenceNumber(info.ageSequenceNumber);
SetAgeLanguage(info.ageLanguage);
}

Loading…
Cancel
Save