mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 10:35:42 +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: //
|
// Purpose: //
|
||||||
// //
|
// //
|
||||||
@ -235,13 +235,6 @@ void CEagle::UpdateSpot( void )
|
|||||||
UTIL_TraceLine ( vecSrc, vecSrc + vecAiming * 8192, dont_ignore_monsters, ENT(m_pPlayer->pev), &tr );
|
UTIL_TraceLine ( vecSrc, vecSrc + vecAiming * 8192, dont_ignore_monsters, ENT(m_pPlayer->pev), &tr );
|
||||||
|
|
||||||
UTIL_SetOrigin( m_pEagleLaser->pev, tr.vecEndPos );
|
UTIL_SetOrigin( m_pEagleLaser->pev, tr.vecEndPos );
|
||||||
|
|
||||||
if ( UTIL_PointContents(tr.vecEndPos) == CONTENT_SKY )
|
|
||||||
{
|
|
||||||
UTIL_Remove( m_pEagleLaser );
|
|
||||||
m_pEagleLaser = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user