From 74b5543c83c5cdcb88e9254bacab08bc63c4c896 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Lortie Date: Sun, 21 Nov 2021 05:18:13 -0500 Subject: [PATCH] Fixed beam attachment invalidated on restore. (#208) --- dlls/effects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/effects.cpp b/dlls/effects.cpp index e6ad257f..3cdd111d 100644 --- a/dlls/effects.cpp +++ b/dlls/effects.cpp @@ -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 ); }