Skip to content

Commit

Permalink
Fixed beam attachment invalidated on restore. (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
malortie committed Nov 21, 2021
1 parent 0c46e1b commit 74b5543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 74b5543

Please sign in to comment.