extensions/tf2/criticals.cpp
changeset 4093 da128cd7be77
parent 4092 f184c016f489
child 4172 cd458f0d3fb2
     1.1 --- a/extensions/tf2/criticals.cpp	Thu Aug 29 09:27:35 2013 -0400
     1.2 +++ b/extensions/tf2/criticals.cpp	Thu Aug 29 09:47:20 2013 -0400
     1.3 @@ -34,7 +34,7 @@
     1.4  
     1.5  CritManager g_CritManager;
     1.6  
     1.7 -IForward *g_critForward = nullptr;
     1.8 +IForward *g_critForward = NULL;
     1.9  
    1.10  SH_DECL_MANUALHOOK0(CalcIsAttackCriticalHelper, 0, 0, 0, bool);
    1.11  SH_DECL_MANUALHOOK0(CalcIsAttackCriticalHelperNoCrits, 0, 0, 0, bool);
    1.12 @@ -76,7 +76,7 @@
    1.13  	for (size_t i = playerhelpers->GetMaxClients() + 1; i < MAX_EDICTS; ++i)
    1.14  	{
    1.15  		CBaseEntity *pEntity = gamehelpers->ReferenceToEntity(i);
    1.16 -		if (pEntity == nullptr)
    1.17 +		if (pEntity == NULL)
    1.18  			continue;
    1.19  
    1.20  		IServerUnknown *pUnknown = (IServerUnknown *)pEntity;
    1.21 @@ -177,7 +177,7 @@
    1.22  	CBaseHandle &hndl = *(CBaseHandle *) ((intptr_t)pWeapon + info.actual_offset);
    1.23  	CBaseEntity *pHandleEntity = gamehelpers->ReferenceToEntity(hndl.GetEntryIndex());
    1.24  
    1.25 -	if (pHandleEntity != nullptr && hndl == reinterpret_cast<IHandleEntity *>(pHandleEntity)->GetRefEHandle())
    1.26 +	if (pHandleEntity != NULL && hndl == reinterpret_cast<IHandleEntity *>(pHandleEntity)->GetRefEHandle())
    1.27  	{
    1.28  		ownerIndex = hndl.GetEntryIndex();
    1.29  	}