Skip to content

Commit

Permalink
Fixed famous binoculars bug
Browse files Browse the repository at this point in the history
This fixes issue when you could see frames on nothing. Now the
binoculars will only mark alive entities that are visible right now.

OGSR/OGSR-Engine@4162526
  • Loading branch information
Xottab-DUTY committed Mar 31, 2019
1 parent 642dda3 commit 64c22e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs/engine/xrGame/WeaponBinocularsVision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void CBinocularsVision::Update()
for (; v_it!=vVisibles.end(); ++v_it)
{
const CObject* _object_ = (*v_it).m_object;
if (!pActor->memory().visual().visible_now(smart_cast<const CGameObject*>(_object_)))
if (!pActor->memory().visual().visible_right_now(smart_cast<const CGameObject*>(_object_)))
continue;

CObject* object_ = const_cast<CObject*>(_object_);
Expand Down

0 comments on commit 64c22e8

Please sign in to comment.