Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 5:06:59 PM (17 years ago)
Author:
rennerc
Message:

dead gui :D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/bsp_weapon.cc

    r10713 r10718  
    170170  if ( shortestDist < (pos - target->getAbsCoor()).len() )
    171171  {
     172
     173#ifdef DEBUG_AIMING
    172174    printf("HIT WALL\n");
    173 #ifdef DEBUG_AIMING
    174175    this->debugDist = shortestDist;
    175176#endif
     
    190191    if (r < p )
    191192    {
     193#ifdef DEBUG_AIMING
    192194      printf( "HIT %s\n", target->getClassName().c_str() );
     195#endif
    193196      target->hit( this->damage, this );
    194197    }
     198#ifdef DEBUG_AIMING
    195199    else
    196200      printf( "MISHIT %s\n", target->getClassName().c_str() );
     201#endif
    197202
    198203  }
    199204  else
    200205  {
     206#ifdef DEBUG_AIMING
    201207    printf( "HIT %s\n", target->getClassName().c_str() );
     208#endif
    202209    target->hit( this->damage, this );
    203210  }
     
    217224    (*it)->draw();
    218225  }
    219 #if 1
     226#ifdef DEBUG_AIMING
    220227  glMatrixMode(GL_MODELVIEW);
    221228  glPushMatrix();
     
    231238  Vector mp = this->getAbsCoor();
    232239  Vector op = this->getAbsDir().apply( Vector(1, 0, 0) );
    233 #ifdef DEBUG_AIMING
     240
    234241  op *= debugDist;
    235 #else
    236   op *= 1000;
    237 #endif
    238242  op += mp;
    239243
Note: See TracChangeset for help on using the changeset viewer.