mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Get rid of NEW(), TRACKED_NEW, and ZERO().
This commit is contained in:
@ -114,7 +114,7 @@ hsBool plCollisionDetector::MsgReceive(plMessage* msg)
|
||||
{
|
||||
for (int i = 0; i < fReceivers.Count(); i++)
|
||||
{
|
||||
plActivatorMsg* pMsg = TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* pMsg = new plActivatorMsg;
|
||||
pMsg->AddReceiver( fReceivers[i] );
|
||||
|
||||
if (fProxyKey)
|
||||
@ -141,7 +141,7 @@ hsBool plCollisionDetector::MsgReceive(plMessage* msg)
|
||||
|
||||
for (int i = 0; i < fReceivers.Count(); i++)
|
||||
{
|
||||
plActivatorMsg* pMsg = TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* pMsg = new plActivatorMsg;
|
||||
pMsg->AddReceiver( fReceivers[i] );
|
||||
if (fProxyKey)
|
||||
pMsg->fHiteeObj = fProxyKey;
|
||||
@ -194,7 +194,7 @@ hsBool plCollisionDetector::MsgReceive(plMessage* msg)
|
||||
plgDispatch::Dispatch()->UnRegisterForExactType(plEvalMsg::Index(), GetKey());
|
||||
for (int i = 0; i < fReceivers.Count(); i++)
|
||||
{
|
||||
plActivatorMsg* pMsg = TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* pMsg = new plActivatorMsg;
|
||||
pMsg->AddReceiver( fReceivers[i] );
|
||||
if (fProxyKey)
|
||||
pMsg->fHiteeObj = fProxyKey;
|
||||
@ -491,7 +491,7 @@ void plObjectInVolumeDetector::ITrigger(plKey hitter, bool entering, bool immedi
|
||||
else
|
||||
initialState =false;
|
||||
|
||||
plCollisionBookKeepingInfo* BookKeeper=TRACKED_NEW plCollisionBookKeepingInfo(hitter);
|
||||
plCollisionBookKeepingInfo* BookKeeper=new plCollisionBookKeepingInfo(hitter);
|
||||
if(entering)
|
||||
{
|
||||
BookKeeper->enters++;
|
||||
@ -509,7 +509,7 @@ void plObjectInVolumeDetector::ITrigger(plKey hitter, bool entering, bool immedi
|
||||
}
|
||||
else
|
||||
{
|
||||
plActivatorMsg* ActivatorMsg = TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* ActivatorMsg = new plActivatorMsg;
|
||||
ActivatorMsg->AddReceivers(fReceivers);
|
||||
if (fProxyKey)
|
||||
ActivatorMsg->fHiteeObj = fProxyKey;
|
||||
@ -533,7 +533,7 @@ void plObjectInVolumeDetector::ITrigger(plKey hitter, bool entering, bool immedi
|
||||
}
|
||||
#endif // USE_PHYSX_COLLISION_FLUTTER_WORKAROUND
|
||||
|
||||
/* fSavedActivatorMsg = TRACKED_NEW plActivatorMsg;
|
||||
/* fSavedActivatorMsg = new plActivatorMsg;
|
||||
|
||||
fSavedActivatorMsg->AddReceivers(fReceivers);
|
||||
|
||||
@ -647,7 +647,7 @@ void plObjectInVolumeDetector::IHandleEval(plEvalMsg* pEval)
|
||||
HitIt = fCurrentResidents.find((*it)->hitter);
|
||||
if(HitIt != fCurrentResidents.end()) alreadyInside = true;
|
||||
else alreadyInside=false;
|
||||
plActivatorMsg* actout=TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* actout=new plActivatorMsg;
|
||||
actout->fHitterObj=((*it)->hitter);
|
||||
actout->SetSender(GetKey());
|
||||
if (fProxyKey)
|
||||
@ -890,14 +890,14 @@ hsBool plSubworldRegionDetector::MsgReceive(plMessage* msg)
|
||||
DetectorLogSpecial("Switching to subworld %s", fSub->GetName());
|
||||
|
||||
plKey nilKey;
|
||||
plSubWorldMsg* msg = TRACKED_NEW plSubWorldMsg(GetKey(), avMod->GetKey(), fSub);
|
||||
plSubWorldMsg* msg = new plSubWorldMsg(GetKey(), avMod->GetKey(), fSub);
|
||||
msg->Send();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DetectorLogSpecial("Switching to main subworld");
|
||||
plSubWorldMsg* msg = TRACKED_NEW plSubWorldMsg(GetKey(), avMod->GetKey(), nil);
|
||||
plSubWorldMsg* msg = new plSubWorldMsg(GetKey(), avMod->GetKey(), nil);
|
||||
msg->Send();
|
||||
}
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
{
|
||||
fReceivers.Append(mgr->ReadKey(stream));
|
||||
}
|
||||
mgr->ReadKeyNotifyMe(stream, TRACKED_NEW plObjRefMsg(GetKey(), plRefMsg::kOnCreate, 0, plObjRefMsg::kModifier), plRefFlags::kActiveRef);
|
||||
mgr->ReadKeyNotifyMe(stream, new plObjRefMsg(GetKey(), plRefMsg::kOnCreate, 0, plObjRefMsg::kModifier), plRefFlags::kActiveRef);
|
||||
fProxyKey = mgr->ReadKey(stream);
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ void plPhysicalSndGroup::PlaySlideSound(uint32_t against)
|
||||
{
|
||||
if(against >= fSlideSounds.Count())
|
||||
return;
|
||||
plAnimCmdMsg* animMsg = TRACKED_NEW plAnimCmdMsg;
|
||||
plAnimCmdMsg* animMsg = new plAnimCmdMsg;
|
||||
animMsg->SetCmd(plAnimCmdMsg::kContinue);
|
||||
animMsg->Send(fSlideSounds[against]);
|
||||
fPlayingSlideSound = true;
|
||||
@ -156,7 +156,7 @@ void plPhysicalSndGroup::StopSlideSound(uint32_t against)
|
||||
{
|
||||
if(against >= fSlideSounds.Count())
|
||||
return;
|
||||
plAnimCmdMsg *animMsg = TRACKED_NEW plAnimCmdMsg;
|
||||
plAnimCmdMsg *animMsg = new plAnimCmdMsg;
|
||||
animMsg->SetCmd(plAnimCmdMsg::kStop);
|
||||
animMsg->Send(fSlideSounds[against]);
|
||||
fPlayingSlideSound = false;
|
||||
@ -166,7 +166,7 @@ void plPhysicalSndGroup::PlayImpactSound(uint32_t against)
|
||||
{
|
||||
if(against >= fImpactSounds.Count())
|
||||
return;
|
||||
plAnimCmdMsg* animMsg = TRACKED_NEW plAnimCmdMsg;
|
||||
plAnimCmdMsg* animMsg = new plAnimCmdMsg;
|
||||
animMsg->SetCmd(plAnimCmdMsg::kContinue);
|
||||
animMsg->Send(fImpactSounds[against]);
|
||||
}
|
||||
@ -175,7 +175,7 @@ void plPhysicalSndGroup::SetSlideSoundVolume(uint32_t against, float volume)
|
||||
{
|
||||
if(against >= fSlideSounds.Count())
|
||||
return;
|
||||
plAnimCmdMsg* animMsg = TRACKED_NEW plAnimCmdMsg;
|
||||
plAnimCmdMsg* animMsg = new plAnimCmdMsg;
|
||||
animMsg->SetCmd(plAnimCmdMsg::kSetSpeed);
|
||||
animMsg->fSpeed = volume;
|
||||
animMsg->Send(fSlideSounds[against]);
|
||||
|
@ -78,7 +78,7 @@ hsBool plPickingDetector::MsgReceive(plMessage* msg)
|
||||
{
|
||||
for (int i = 0; i < fReceivers.Count(); i++)
|
||||
{
|
||||
plActivatorMsg* pMsg = TRACKED_NEW plActivatorMsg;
|
||||
plActivatorMsg* pMsg = new plActivatorMsg;
|
||||
pMsg->AddReceiver( fReceivers[i] );
|
||||
if (pPMsg->fPicked)
|
||||
pMsg->SetTriggerType( plActivatorMsg::kPickedTrigger );
|
||||
|
Reference in New Issue
Block a user