1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 03:09:13 +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

@ -56,7 +56,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
void plLogicModBase::ConsoleTrigger(plKey playerKey)
{
// Setup the event data in case this is a OneShot responder that needs it
proPickedEventData *ed = TRACKED_NEW proPickedEventData;
proPickedEventData *ed = new proPickedEventData;
ed->fPicker = playerKey;
ed->fPicked = nil;
fNotify->AddEvent(ed);
@ -80,7 +80,7 @@ fTimer(0.0f),
fNotify(nil),
fDisabled(false)
{
fNotify = TRACKED_NEW plNotifyMsg;
fNotify = new plNotifyMsg;
}
plLogicModBase::~plLogicModBase()
@ -113,7 +113,7 @@ void plLogicModBase::RegisterForMessageType(uint16_t hClass)
void plLogicModBase::IUpdateSharedState(bool triggered) const
{
plNetSharedState ss("TrigState");
plGenericVar* sv = TRACKED_NEW plGenericVar("Triggered");
plGenericVar* sv = new plGenericVar("Triggered");
sv->Value().SetBool(triggered); // attempting to set trig state to true
ss.AddVar(sv);
@ -304,7 +304,7 @@ void plLogicModBase::Reset(bool bCounterReset)
void plLogicModBase::CreateNotifyMsg()
{
fNotify = TRACKED_NEW plNotifyMsg;
fNotify = new plNotifyMsg;
for (int i = 0; i < fReceiverList.Count(); i++)
fNotify->AddReceiver(fReceiverList[i]);
}