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

This commit is contained in:
Roman Chistokhodov 2022-07-22 04:12:08 +03:00 committed by GitHub
parent d3dba792b1
commit 3b0046cb3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
//