Browse Source

Fix func_button's sparks origin when func_button has origin brush (#291)

fix-cwd-path
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
3b0046cb3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/buttons.cpp

2
dlls/buttons.cpp

@ -639,7 +639,7 @@ void CBaseButton::ButtonSpark( void ) @@ -639,7 +639,7 @@ void CBaseButton::ButtonSpark( void )
SetThink( &CBaseButton::ButtonSpark );
pev->nextthink = pev->ltime + 0.1f + RANDOM_FLOAT( 0.0f, 1.5f );// spark again at random interval
DoSpark( pev, pev->mins );
DoSpark( pev, pev->absmin );
}
//

Loading…
Cancel
Save