Skip to content

Commit

Permalink
Fix second case of incorrect timebase for button sparks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed May 18, 2022
1 parent 0d101ca commit ecd7ef9
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 @@ -889,7 +889,7 @@ void CBaseButton::ButtonBackHome()
if (!FClassnameIs(pev, "func_rot_button") && FBitSet(pev->spawnflags, SF_BUTTON_SPARK_IF_OFF))
{
SetThink(&CBaseButton::ButtonSpark);
pev->nextthink = gpGlobals->time + 0.5; // no hurry.
pev->nextthink = pev->ltime + 0.5; // no hurry.
}
}

Expand Down

0 comments on commit ecd7ef9

Please sign in to comment.