2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

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

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