mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
game(hl1): fix UTIL_DropToFloor
This commit is contained in:
@@ -5525,6 +5525,7 @@ class CPhysicsPropMultiplayer : public CPhysicsProp, public IMultiplayerPhysics
|
||||
{
|
||||
m_iPhysicsMode = PHYSICS_MULTIPLAYER_AUTODETECT;
|
||||
m_usingCustomCollisionBounds = false;
|
||||
m_fMass = 0.f;
|
||||
}
|
||||
|
||||
// IBreakableWithPropData:
|
||||
@@ -5618,8 +5619,8 @@ class CPhysicsPropMultiplayer : public CPhysicsProp, public IMultiplayerPhysics
|
||||
SetCollisionGroup( COLLISION_GROUP_DEBRIS );
|
||||
}
|
||||
|
||||
if(VPhysicsGetObject())
|
||||
m_fMass = VPhysicsGetObject()->GetMass();
|
||||
if(VPhysicsGetObject())
|
||||
m_fMass = VPhysicsGetObject()->GetMass();
|
||||
|
||||
// VPhysicsGetObject() is NULL on the client, which prevents the client from finding a decent
|
||||
// AABB surrounding the collision bounds. If we've got a VPhysicsGetObject()->GetCollide(), we'll
|
||||
|
||||
Reference in New Issue
Block a user