trigger_hurt: Fixed the timer so you can get hurt more than once
This commit is contained in:
parent
274d8386fb
commit
9c29c9fcb9
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ void trigger_hurt :: Trigger ( void )
|
|||
|
||||
void trigger_hurt :: Touch ( void )
|
||||
{
|
||||
if ( m_flNextTrigger > ltime ) {
|
||||
if ( m_flNextTrigger > time ) {
|
||||
return;
|
||||
} else if ( other.takedamage == DAMAGE_NO ) {
|
||||
return;
|
||||
|
@ -68,7 +68,7 @@ void trigger_hurt :: Touch ( void )
|
|||
solid = SOLID_NOT;
|
||||
}
|
||||
|
||||
m_flNextTrigger = ltime + 0.5;
|
||||
m_flNextTrigger = time + 0.5;
|
||||
}
|
||||
|
||||
void trigger_hurt :: Respawn ( void )
|
||||
|
|
Loading…
Reference in a new issue