Skip to content

Commit

Permalink
xrGame/Level_bullet_manager_firetrace.cpp: Add XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 30, 2018
1 parent 7124ea7 commit 56e829e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xrGame/Level_bullet_manager_firetrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

//константы ShootFactor, определяющие
//поведение пули при столкновении с объектом
// XXX: review
#define RICOCHET_THRESHOLD 0.1
#define STUCK_THRESHOLD 0.4

Expand Down Expand Up @@ -174,12 +175,13 @@ void CBulletManager::FireShotmark(SBullet* bullet, const Fvector& vDir, const Fv

if (R.O)
{
//add_SkeletonWallmark not implemented now...
particle_dir = vDir;
particle_dir.invert();

//на текущем актере отметок не ставим
if (Level().CurrentEntity() && Level().CurrentEntity()->ID() == R.O->ID()) return;
// XXX: review
// на текущем актере отметок не ставим
if (Level().CurrentEntity() && Level().CurrentEntity()->ID() == R.O->ID())
return;

if (mtl_pair && !mtl_pair->CollideMarks->empty() && ShowMark)
{
Expand Down

0 comments on commit 56e829e

Please sign in to comment.