diff --git a/src/game/server/tanktrain.cpp b/src/game/server/tanktrain.cpp index 62a5acd62..4af947b57 100644 --- a/src/game/server/tanktrain.cpp +++ b/src/game/server/tanktrain.cpp @@ -45,7 +45,6 @@ public: void Spawn( void ); // Filter out damage messages that don't contain blast damage (impervious to other forms of attack) - int OnTakeDamage( const CTakeDamageInfo &info ); void Event_Killed( const CTakeDamageInfo &info ); void Blocked( CBaseEntity *pOther ) { @@ -70,19 +69,10 @@ END_DATADESC() void CFuncTankTrain::Spawn( void ) { - m_takedamage = true; + m_takedamage = DAMAGE_YES; BaseClass::Spawn(); } -// Filter out damage messages that don't contain blast damage (impervious to other forms of attack) -int CFuncTankTrain::OnTakeDamage( const CTakeDamageInfo &info ) -{ - if ( ! (info.GetDamageType() & DMG_BLAST) ) - return 0; - - return BaseClass::OnTakeDamage( info ); -} - //----------------------------------------------------------------------------- // Purpose: Called when the train is killed.