mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix plNetClient.
This commit is contained in:
@ -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 () {
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -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());
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user