Skip to content

Commit

Permalink
Merge pull request #1485 from Hoikas/subworld_msg_problem
Browse files Browse the repository at this point in the history
Fix 3 problems with `plSubWorldMsg`.
  • Loading branch information
Hoikas authored Sep 18, 2023
2 parents accab6a + 5931bd0 commit dedae35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ bool plArmatureMod::MsgReceive(plMessage* msg)
if (fController)
{
fController->SetSubworld(subMsg->fWorldKey);
DirtySynchState(kSDLAvatar, plSynchedObject::kBCastToClients);
DirtyPhysicalSynchState(plSynchedObject::kBCastToClients);
}
return true;
}
Expand Down
3 changes: 3 additions & 0 deletions Sources/Plasma/PubUtilLib/plModifier/plResponderModifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,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 != nullptr && snd->Cmd(plSoundMsg::kIsLocalOnly))
Expand Down Expand Up @@ -351,6 +353,7 @@ bool plResponderModifier::IContinueSending()
plArmatureMod *avatar = plAvatarMgr::GetInstance()->GetLocalAvatar();
if(avatar)
{
swMsg->ClearReceivers();
swMsg->AddReceiver(avatar->GetKey());
}
}
Expand Down

0 comments on commit dedae35

Please sign in to comment.