mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Wrong check (if c is NULL, nothing is happening)
--HG-- branch : develop
This commit is contained in:
parent
c6927af7c0
commit
d5e74ca5c8
1 changed files with 20 additions and 23 deletions
|
@ -33,10 +33,8 @@ void CRangeSelector::buildDisc( CEntityBase * actor, sint32 x, sint32 y,float ra
|
||||||
for (uint32 i=0;i<_Entities.size();++i)
|
for (uint32 i=0;i<_Entities.size();++i)
|
||||||
BOMB_IF(_Entities[i]==&*it,"BUG: We just tried to insert the same entity into a disk entity list more than once!",continue);
|
BOMB_IF(_Entities[i]==&*it,"BUG: We just tried to insert the same entity into a disk entity list more than once!",continue);
|
||||||
|
|
||||||
if( c != 0 )
|
|
||||||
{
|
|
||||||
CEntityBase * areaTarget = &(*it);
|
CEntityBase * areaTarget = &(*it);
|
||||||
if( c != 0)
|
if( c != NULL)
|
||||||
{
|
{
|
||||||
// Do not add invisible entity for player
|
// Do not add invisible entity for player
|
||||||
if( !R2_VISION::isEntityVisibleToPlayers(areaTarget->getWhoSeesMe()))
|
if( !R2_VISION::isEntityVisibleToPlayers(areaTarget->getWhoSeesMe()))
|
||||||
|
@ -57,7 +55,6 @@ void CRangeSelector::buildDisc( CEntityBase * actor, sint32 x, sint32 y,float ra
|
||||||
if( areaTarget && areaTarget->invulnerableMode() )
|
if( areaTarget && areaTarget->invulnerableMode() )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
_Entities.push_back(&*it);
|
_Entities.push_back(&*it);
|
||||||
_Distances.push_back( it.getDistance() );
|
_Distances.push_back( it.getDistance() );
|
||||||
|
|
Loading…
Reference in a new issue