1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Get rid of NEW(), TRACKED_NEW, and ZERO().

This commit is contained in:
Darryl Pogue
2012-01-21 01:09:48 -08:00
committed by Adam Johnson
parent 30430d3024
commit 5013a978eb
423 changed files with 2500 additions and 2503 deletions

View File

@ -83,7 +83,7 @@ const float plAvBrainGeneric::kDefaultFadeOut = 0.f; // instant fade out.
// -----------------
plAvBrainGeneric::plAvBrainGeneric()
: fRecipient(nil),
fStages(TRACKED_NEW plAnimStageVec),
fStages(new plAnimStageVec),
fCurStage(0),
fType(kGeneric),
fExitFlags(kExitNormal),
@ -172,7 +172,7 @@ void plAvBrainGeneric::Activate(plArmatureModBase *avMod)
if ((GetType() == kEmote || GetType() == kAFK || GetType() == kSitOnGround) && fAvMod->IsLocalAvatar())
{
plInputIfaceMgrMsg* msg = TRACKED_NEW plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableClickables );
plInputIfaceMgrMsg* msg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableClickables );
plgDispatch::MsgSend(msg);
}
@ -208,7 +208,7 @@ void plAvBrainGeneric::Activate(plArmatureModBase *avMod)
if (plAvBrainGeneric::fForce3rdPerson && fAvMod->IsLocalAvatar())
{
// create message to force 3rd person mode
plCameraMsg* pMsg = TRACKED_NEW plCameraMsg;
plCameraMsg* pMsg = new plCameraMsg;
pMsg->SetBCastFlag(plMessage::kBCastByExactType);
pMsg->SetCmd(plCameraMsg::kResponderSetThirdPerson);
pMsg->SetBCastFlag(plMessage::kNetPropagate, false);
@ -307,7 +307,7 @@ void plAvBrainGeneric::Deactivate()
if (plAvBrainGeneric::fForce3rdPerson && fAvMod->IsLocalAvatar())
{
// create message to force 3rd person mode
plCameraMsg* pMsg = TRACKED_NEW plCameraMsg;
plCameraMsg* pMsg = new plCameraMsg;
pMsg->SetBCastFlag(plMessage::kBCastByExactType);
pMsg->SetBCastFlag(plMessage::kNetPropagate, false);
pMsg->SetCmd(plCameraMsg::kResponderUndoThirdPerson);
@ -318,7 +318,7 @@ void plAvBrainGeneric::Deactivate()
if ((GetType() == kEmote || GetType() == kAFK || GetType() == kSitOnGround) && fAvMod->IsLocalAvatar())
{
plInputIfaceMgrMsg* msg = TRACKED_NEW plInputIfaceMgrMsg(plInputIfaceMgrMsg::kEnableClickables );
plInputIfaceMgrMsg* msg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kEnableClickables );
plgDispatch::MsgSend(msg);
}
}
@ -879,7 +879,7 @@ hsBool plAvBrainGeneric::LeaveAge()
int plAvBrainGeneric::AddStage(plAnimStage *stage)
{
if(!fStages)
fStages = TRACKED_NEW plAnimStageVec;
fStages = new plAnimStageVec;
fStages->push_back(stage);
return fStages->size() - 1;
}