Skip to content

Commit

Permalink
активированы воллмарки
Browse files Browse the repository at this point in the history
  • Loading branch information
abramcumner committed Mar 18, 2017
1 parent ff6bd09 commit cf0d9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray/Layers/xrRender/WallmarksEngine.cpp
Expand Up @@ -276,7 +276,7 @@ void CWallmarksEngine::AddStaticWallmark (CDB::TRI* pTri, const Fvector* pVerts,

void CWallmarksEngine::AddSkeletonWallmark (const Fmatrix* xf, CKinematics* obj, ref_shader& sh, const Fvector& start, const Fvector& dir, float size)
{
if( 0==g_r || ::RImplementation.phase != CRender::PHASE_NORMAL) return;
if(::RImplementation.phase != CRender::PHASE_NORMAL) return;
// optimization cheat: don't allow wallmarks more than 50 m from viewer/actor
if (xf->c.distance_to_sqr(Device.vCameraPosition) > _sqr(50.f)) return;

Expand All @@ -288,7 +288,7 @@ void CWallmarksEngine::AddSkeletonWallmark (const Fmatrix* xf, CKinematics* obj,

void CWallmarksEngine::AddSkeletonWallmark(intrusive_ptr<CSkeletonWallmark> wm)
{
if(0==g_r || ::RImplementation.phase != CRender::PHASE_NORMAL) return;
if(::RImplementation.phase != CRender::PHASE_NORMAL) return;

if (!::RImplementation.val_bHUD)
{
Expand Down

0 comments on commit cf0d9e9

Please sign in to comment.