Browse Source

Fixed beam attachment invalidated on restore. (#208)

hl_urbicide
Marc-Antoine Lortie 3 years ago committed by GitHub
parent
commit
74b5543c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dlls/effects.cpp

4
dlls/effects.cpp

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

Loading…
Cancel
Save