Skip to content

Commit

Permalink
Fixes from main Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Baklojan committed Jun 16, 2024
1 parent 77c1021 commit 5dcdba0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mp/src/game/server/ai_behavior_assault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ int CAI_AssaultBehavior::TranslateSchedule( int scheduleType )
break;

case SCHED_HOLD_RALLY_POINT:
if( HasCondition(COND_NO_PRIMARY_AMMO) | HasCondition(COND_LOW_PRIMARY_AMMO) )
if( HasCondition(COND_NO_PRIMARY_AMMO) || HasCondition(COND_LOW_PRIMARY_AMMO) )
{
return SCHED_RELOAD;
}
Expand Down
21 changes: 15 additions & 6 deletions mp/src/game/shared/ragdoll_shared.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
Expand Down Expand Up @@ -881,15 +881,16 @@ void CRagdollLRURetirement::Update( float frametime ) // EPISODIC VERSION

for ( i = m_LRU.Head(); i < m_LRU.InvalidIndex(); i = next )
{
CBaseAnimating *pRagdoll = m_LRU[i].Get();

next = m_LRU.Next(i);
IPhysicsObject *pObject = pRagdoll->VPhysicsGetObject();
if ( pRagdoll && (pRagdoll->GetEffectEntity() || ( pObject && !pObject->IsAsleep()) ) )
continue;

CBaseAnimating* pRagdoll = m_LRU[i].Get();

if ( pRagdoll )
{
IPhysicsObject* pObject = pRagdoll->VPhysicsGetObject();
if (pRagdoll->GetEffectEntity() || (pObject && !pObject->IsAsleep()))
continue;

// float distToPlayer = (pPlayer->GetAbsOrigin() - pRagdoll->GetAbsOrigin()).LengthSqr();
float distToPlayer = (PlayerOrigin - pRagdoll->GetAbsOrigin()).LengthSqr();

Expand Down Expand Up @@ -924,6 +925,14 @@ void CRagdollLRURetirement::Update( float frametime ) // EPISODIC VERSION

CBaseAnimating *pRagdoll = m_LRU[i].Get();

if (pRagdoll)
{
//Just ignore it until we're done burning/dissolving.
IPhysicsObject* pObject = pRagdoll->VPhysicsGetObject();
if (pRagdoll->GetEffectEntity() || (pObject && !pObject->IsAsleep()))
continue;
}

//Just ignore it until we're done burning/dissolving.
IPhysicsObject *pObject = pRagdoll->VPhysicsGetObject();
if ( pRagdoll && (pRagdoll->GetEffectEntity() || ( pObject && !pObject->IsAsleep()) ) )
Expand Down
2 changes: 1 addition & 1 deletion mp/src/public/collisionutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ bool IntersectRayWithOBB( const Ray_t &ray, const matrix3x4_t &matOBBToWorld,
}
temp.type = 3;

MatrixITransformPlane( matOBBToWorld, temp, pTrace->plane );
MatrixTransformPlane( matOBBToWorld, temp, pTrace->plane );
return true;
}

Expand Down

0 comments on commit 5dcdba0

Please sign in to comment.