Browse Source

Merge pull request #176 from Hoikas/afk-clickables

Allow clickables to function while sitting or AFK.
Branan Purvine-Riley 13 years ago
parent
commit
ec4190e807
  1. 12
      Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.cpp

12
Sources/Plasma/PubUtilLib/plAvatar/plAvBrainGeneric.cpp

@ -170,12 +170,6 @@ void plAvBrainGeneric::Activate(plArmatureModBase *avMod)
{ {
plArmatureBrain::Activate(avMod); plArmatureBrain::Activate(avMod);
if ((GetType() == kEmote || GetType() == kAFK || GetType() == kSitOnGround) && fAvMod->IsLocalAvatar())
{
plInputIfaceMgrMsg* msg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableClickables );
plgDispatch::MsgSend(msg);
}
int numStages = fStages->size(); int numStages = fStages->size();
if (!numStages) if (!numStages)
return; return;
@ -315,12 +309,6 @@ void plAvBrainGeneric::Deactivate()
} }
plArmatureBrain::Deactivate(); plArmatureBrain::Deactivate();
if ((GetType() == kEmote || GetType() == kAFK || GetType() == kSitOnGround) && fAvMod->IsLocalAvatar())
{
plInputIfaceMgrMsg* msg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kEnableClickables );
plgDispatch::MsgSend(msg);
}
} }
// GETRECIPIENT // GETRECIPIENT

Loading…
Cancel
Save