mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-04 11:04:28 +00:00
Merge f8db63a45b
This commit is contained in:
parent
77d077c83d
commit
2df762e705
@ -375,6 +375,13 @@ void CPlatTrigger::Touch( CBaseEntity *pOther )
|
|||||||
|
|
||||||
CFuncPlat *pPlatform = (CFuncPlat*)(CBaseEntity*)m_hPlatform;
|
CFuncPlat *pPlatform = (CFuncPlat*)(CBaseEntity*)m_hPlatform;
|
||||||
|
|
||||||
|
if( FNullEnt( pPlatform ) )
|
||||||
|
{
|
||||||
|
// The target platform has been removed, remove myself as well. - Solokiller
|
||||||
|
UTIL_Remove( this );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Ignore touches by corpses
|
// Ignore touches by corpses
|
||||||
if( !pOther->IsAlive() )
|
if( !pOther->IsAlive() )
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user