Skip to content

Commit

Permalink
Fix CBeam restore
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jul 7, 2018
1 parent fe66b76 commit bb590d2
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 bb590d2

Please sign in to comment.