mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-11 19:29:08 +00:00
game: small fixes
This commit is contained in:
@@ -30,7 +30,7 @@ END_RECV_TABLE()
|
||||
void C_VoteController::RecvProxy_VoteType( const CRecvProxyData *pData, void *pStruct, void *pOut )
|
||||
{
|
||||
C_VoteController *pMe = (C_VoteController *)pStruct;
|
||||
if( pMe->m_iActiveIssueIndex == pData->m_Value.m_Int )
|
||||
if( memcmp( &pMe->m_iActiveIssueIndex, &pData->m_Value.m_Int, sizeof(pData->m_Value.m_Int)) == 0 )
|
||||
return;
|
||||
|
||||
memcpy( &pMe->m_iActiveIssueIndex, &pData->m_Value.m_Int, sizeof(pData->m_Value.m_Int) );
|
||||
|
||||
@@ -2517,6 +2517,8 @@ LINK_ENTITY_TO_CLASS( trigger_autosave, CTriggerSave );
|
||||
//-----------------------------------------------------------------------------
|
||||
void CTriggerSave::Spawn( void )
|
||||
{
|
||||
m_minHitPoints = 1;
|
||||
|
||||
if ( g_pGameRules->IsDeathmatch() )
|
||||
{
|
||||
UTIL_Remove( this );
|
||||
@@ -2534,7 +2536,7 @@ void CTriggerSave::Spawn( void )
|
||||
void CTriggerSave::Touch( CBaseEntity *pOther )
|
||||
{
|
||||
// Only save on clients
|
||||
if ( !pOther->IsPlayer() )
|
||||
if ( !pOther->IsPlayer() || !pOther->IsAlive() )
|
||||
return;
|
||||
|
||||
if ( m_fDangerousTimer != 0.0f )
|
||||
|
||||
Reference in New Issue
Block a user