2
0
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:
Marc-Antoine Lortie 2021-11-21 05:18:13 -05:00 committed by GitHub
parent 0c46e1b5bd
commit 74b5543c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,13 +174,13 @@ void CBeam::Precache( void )
void CBeam::SetStartEntity( int entityIndex ) 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 ); pev->owner = g_engfuncs.pfnPEntityOfEntIndex( entityIndex );
} }
void CBeam::SetEndEntity( int 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 ); pev->aiment = g_engfuncs.pfnPEntityOfEntIndex( entityIndex );
} }