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
1 changed files with 2 additions and 2 deletions

View File

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