mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Merge remote-tracking branch 'origin/master' into plString
[AMEND] Fixed one new case which came in from master
This commit is contained in:
@ -928,9 +928,7 @@ void plSubworldRegionDetector::Write(hsStream* stream, hsResMgr* mgr)
|
||||
///////////////////////////////////
|
||||
hsBool plPanicLinkRegion::MsgReceive(plMessage* msg)
|
||||
{
|
||||
plCollideMsg* pCollMsg = plCollideMsg::ConvertNoRef(msg);
|
||||
|
||||
if (pCollMsg)
|
||||
if (plCollideMsg* pCollMsg = plCollideMsg::ConvertNoRef(msg))
|
||||
{
|
||||
if (plNetClientApp::GetInstance()->GetLocalPlayerKey() != pCollMsg->fOtherKey)
|
||||
return true;
|
||||
@ -940,13 +938,17 @@ hsBool plPanicLinkRegion::MsgReceive(plMessage* msg)
|
||||
plArmatureMod* avMod = IGetAvatarModifier(pCollMsg->fOtherKey);
|
||||
if (avMod)
|
||||
{
|
||||
hsPoint3 kinPos;
|
||||
if (avMod->GetController())
|
||||
if (avMod->IsLinkedIn())
|
||||
{
|
||||
avMod->GetController()->GetKinematicPosition(kinPos);
|
||||
DetectorLogSpecial("Avatar is panic linking. KinPos at %f,%f,%f and is %s",kinPos.fX,kinPos.fY,kinPos.fZ,avMod->GetController()->IsEnabled() ? "enabled" : "disabled");
|
||||
}
|
||||
avMod->PanicLink(fPlayLinkOutAnim);
|
||||
hsPoint3 kinPos;
|
||||
if (avMod->GetController())
|
||||
{
|
||||
avMod->GetController()->GetKinematicPosition(kinPos);
|
||||
DetectorLogSpecial("Avatar is panic linking. KinPos at %f,%f,%f and is %s",kinPos.fX,kinPos.fY,kinPos.fZ,avMod->GetController()->IsEnabled() ? "enabled" : "disabled");
|
||||
}
|
||||
avMod->PanicLink(fPlayLinkOutAnim);
|
||||
} else
|
||||
DetectorLogRed("PANIC LINK %s before we actually linked in!", GetKey()->GetName().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,8 +237,7 @@ class plPanicLinkRegion : public plCollisionDetector
|
||||
public:
|
||||
hsBool fPlayLinkOutAnim;
|
||||
|
||||
plPanicLinkRegion() : fPlayLinkOutAnim(true) {;}
|
||||
~plPanicLinkRegion(){;}
|
||||
plPanicLinkRegion() : fPlayLinkOutAnim(true) { }
|
||||
|
||||
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
|
Reference in New Issue
Block a user