Browse Source

Fix mp3 playing under steam.

asheep
Night Owl 6 years ago
parent
commit
1add096161
  1. 8
      dlls/triggers.cpp

8
dlls/triggers.cpp

@ -639,7 +639,7 @@ public: @@ -639,7 +639,7 @@ public:
void Spawn( void );
virtual void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
void PlayTrack( void );
void EXPORT PlayTrack( void );
void Touch( CBaseEntity *pOther );
};
@ -657,7 +657,8 @@ void CTriggerCDAudio::Touch( CBaseEntity *pOther ) @@ -657,7 +657,8 @@ void CTriggerCDAudio::Touch( CBaseEntity *pOther )
return;
}
PlayTrack();
SetThink( &CTriggerCDAudio::PlayTrack );
pev->nextthink = gpGlobals->time + 0.2f;
}
void CTriggerCDAudio::Spawn( void )
@ -667,7 +668,8 @@ void CTriggerCDAudio::Spawn( void ) @@ -667,7 +668,8 @@ void CTriggerCDAudio::Spawn( void )
void CTriggerCDAudio::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
PlayTrack();
SetThink( &CTriggerCDAudio::PlayTrack );
pev->nextthink = gpGlobals->time + 0.2f;
}
void PlayCDTrack( int iTrack )

Loading…
Cancel
Save