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:
@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user