mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-05 02:12:10 +03:00
Clean up code some
This commit is contained in:
parent
216ae3f317
commit
2e5ce552c0
@ -1844,11 +1844,11 @@ void CNPC_CombineDropship::InputDropMines( inputdata_t &inputdata )
|
|||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void CNPC_CombineDropship::InputDropStrider(inputdata_t& inputdata)
|
void CNPC_CombineDropship::InputDropStrider( inputdata_t& inputdata )
|
||||||
{
|
{
|
||||||
if (!m_hContainer || !FClassnameIs(m_hContainer, "npc_strider"))
|
if ( !m_hContainer || !FClassnameIs ( m_hContainer, "npc_strider" ) )
|
||||||
{
|
{
|
||||||
Warning("npc_combinedropship %s was told to drop Strider, but isn't carrying one!\n", STRING(GetEntityName()));
|
Warning("npc_combinedropship %s was told to drop Strider, but isn't carrying one!\n", STRING(GetEntityName()) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3041,11 +3041,11 @@ void CNPC_CombineDropship::Hunt( void )
|
|||||||
// Face our desired position.
|
// Face our desired position.
|
||||||
m_vecDesiredFaceDir = desiredDir;
|
m_vecDesiredFaceDir = desiredDir;
|
||||||
|
|
||||||
if ( GetLandingState() == LANDING_DESCEND || GetLandingState() == LANDING_LEVEL_OUT ||
|
#ifdef MAPBASE
|
||||||
# ifdef MAPBASE
|
if ( GetLandingState() == LANDING_DESCEND || GetLandingState() == LANDING_LEVEL_OUT || GetLandingState() == LANDING_STRIDER || IsHovering() )
|
||||||
GetLandingState() == LANDING_STRIDER ||
|
#else
|
||||||
# endif
|
if ( GetLandingState() == LANDING_DESCEND || GetLandingState() == LANDING_LEVEL_OUT || IsHovering() )
|
||||||
IsHovering() )
|
#endif
|
||||||
{
|
{
|
||||||
if ( m_hLandTarget )
|
if ( m_hLandTarget )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user