mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-25 22:24:16 +00:00
Fix build.
This commit is contained in:
parent
1c1d9ae183
commit
a383a57a09
@ -248,7 +248,7 @@ public:
|
|||||||
virtual int ObjectCaps( void ) { return (CBaseEntity::ObjectCaps() & ~FCAP_ACROSS_TRANSITION) | FCAP_DONT_SAVE; }
|
virtual int ObjectCaps( void ) { return (CBaseEntity::ObjectCaps() & ~FCAP_ACROSS_TRANSITION) | FCAP_DONT_SAVE; }
|
||||||
void SpawnInsideTrigger( CFuncPlat *pPlatform );
|
void SpawnInsideTrigger( CFuncPlat *pPlatform );
|
||||||
void Touch( CBaseEntity *pOther );
|
void Touch( CBaseEntity *pOther );
|
||||||
EHANDLE m_pPlatform;
|
EHANDLE m_hPlatform;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*QUAKED func_plat (0 .5 .8) ? PLAT_LOW_TRIGGER
|
/*QUAKED func_plat (0 .5 .8) ? PLAT_LOW_TRIGGER
|
||||||
@ -375,7 +375,7 @@ void CPlatTrigger::Touch( CBaseEntity *pOther )
|
|||||||
|
|
||||||
CFuncPlat *pPlatform = (CFuncPlat*)(CBaseEntity*)m_hPlatform;
|
CFuncPlat *pPlatform = (CFuncPlat*)(CBaseEntity*)m_hPlatform;
|
||||||
|
|
||||||
if( FNullEnt( pPlatform ) )
|
if( !pPlatform )
|
||||||
{
|
{
|
||||||
// The target platform has been removed, remove myself as well. - Solokiller
|
// The target platform has been removed, remove myself as well. - Solokiller
|
||||||
UTIL_Remove( this );
|
UTIL_Remove( this );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user