mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Fix removing of laser spot when look at the sky.
This commit is contained in:
parent
d386145501
commit
8ce97758a8
@ -1,4 +1,4 @@
|
||||
//========= Copyright © 2004-2008, Raven City Team, All rights reserved. ============//
|
||||
//========= Copyright (c) 2004-2008, Raven City Team, All rights reserved. ============//
|
||||
// //
|
||||
// Purpose: //
|
||||
// //
|
||||
@ -235,13 +235,6 @@ void CEagle::UpdateSpot( void )
|
||||
UTIL_TraceLine ( vecSrc, vecSrc + vecAiming * 8192, dont_ignore_monsters, ENT(m_pPlayer->pev), &tr );
|
||||
|
||||
UTIL_SetOrigin( m_pEagleLaser->pev, tr.vecEndPos );
|
||||
|
||||
if ( UTIL_PointContents(tr.vecEndPos) == CONTENT_SKY )
|
||||
{
|
||||
UTIL_Remove( m_pEagleLaser );
|
||||
m_pEagleLaser = FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user