mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fixed beam attachment invalidated on restore. (#208)
This commit is contained in:
parent
0c46e1b5bd
commit
74b5543c83
@ -174,13 +174,13 @@ void CBeam::Precache( void )
|
||||
|
||||
void CBeam::SetStartEntity( int entityIndex )
|
||||
{
|
||||
pev->sequence = ( entityIndex & 0x0FFF ) | ( ( pev->sequence & 0xF000 ) << 12 );
|
||||
pev->sequence = ( entityIndex & 0x0FFF ) | ( pev->sequence & 0xF000 );
|
||||
pev->owner = g_engfuncs.pfnPEntityOfEntIndex( entityIndex );
|
||||
}
|
||||
|
||||
void CBeam::SetEndEntity( int entityIndex )
|
||||
{
|
||||
pev->skin = ( entityIndex & 0x0FFF ) | ( ( pev->skin & 0xF000 ) << 12 );
|
||||
pev->skin = ( entityIndex & 0x0FFF ) | ( pev->skin & 0xF000 );
|
||||
pev->aiment = g_engfuncs.pfnPEntityOfEntIndex( entityIndex );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user