From 9fecfb50f352764f13266117b5882e2d33a996c8 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Tue, 16 Mar 2021 18:53:50 +0300 Subject: [PATCH] Merge https://github.com/Solokiller/halflife-updated/commit/2ca64e11b05b1f3f62af9640636f891b7c38cc8c --- dlls/buttons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/buttons.cpp b/dlls/buttons.cpp index 8344c814..87e08ce7 100644 --- a/dlls/buttons.cpp +++ b/dlls/buttons.cpp @@ -637,7 +637,7 @@ void DoSpark( entvars_t *pev, const Vector &location ) void CBaseButton::ButtonSpark( void ) { SetThink( &CBaseButton::ButtonSpark ); - pev->nextthink = gpGlobals->time + 0.1f + RANDOM_FLOAT( 0.0f, 1.5f );// spark again at random interval + pev->nextthink = pev->ltime + 0.1f + RANDOM_FLOAT( 0.0f, 1.5f );// spark again at random interval DoSpark( pev, pev->mins ); }