Skip to content

Commit

Permalink
Fix buttons not sparking in multiplayer
Browse files Browse the repository at this point in the history
halflife issue #1681
  • Loading branch information
Solokiller committed Mar 13, 2021
1 parent 16720b9 commit 2ca64e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/buttons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ void DoSpark(entvars_t *pev, const Vector &location )
void CBaseButton::ButtonSpark ()
{
SetThink ( &CBaseButton::ButtonSpark );
pev->nextthink = gpGlobals->time + ( 0.1 + RANDOM_FLOAT ( 0, 1.5 ) );// spark again at random interval
pev->nextthink = pev->ltime + ( 0.1 + RANDOM_FLOAT ( 0, 1.5 ) );// spark again at random interval

DoSpark( pev, pev->mins );
}
Expand Down

0 comments on commit 2ca64e1

Please sign in to comment.