2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 14:37:41 +00:00

Fix 3 problems with plSubWorldMsg.

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
This commit is contained in:
2023-09-18 09:50:23 -07:00
parent f9723462d7
commit 4924156ad4
2 changed files with 4 additions and 1 deletions

View File

@ -1414,7 +1414,7 @@ hsBool plArmatureMod::MsgReceive(plMessage* msg)
if (fController)
{
fController->SetSubworld(subMsg->fWorldKey);
DirtySynchState(kSDLAvatar, plSynchedObject::kBCastToClients);
DirtyPhysicalSynchState(plSynchedObject::kBCastToClients);
}
return true;
}

View File

@ -217,6 +217,8 @@ bool plResponderModifier::IIsLocalOnlyCmd(plMessage* cmd)
return true;
if (plCameraMsg::ConvertNoRef(cmd)) // don't want to change our camera
return true;
if (plSubWorldMsg::ConvertNoRef(cmd)) // don't want to enter a subworld (changes the avatar SDL)
return true;
plSoundMsg *snd = plSoundMsg::ConvertNoRef( cmd );
if( snd != nil && snd->Cmd( plSoundMsg::kIsLocalOnly ) )
@ -362,6 +364,7 @@ bool plResponderModifier::IContinueSending()
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
if(avatar)
{
swMsg->ClearReceivers();
swMsg->AddReceiver(avatar->GetKey());
}
}