Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 2:00:28 PM (17 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r10712 r10713  
    119119        bFire = false;
    120120        range = 1000;
     121#ifdef DEBUG_AIMING
     122        debugDist = 1000;
     123#endif
    121124        damage = 10;
    122125        fireRate = 0.5;
     
    168171  {
    169172    printf("HIT WALL\n");
     173#ifdef DEBUG_AIMING
     174    this->debugDist = shortestDist;
     175#endif
    170176    return;
    171177  }
     178#ifdef DEBUG_AIMING
     179  else
     180  {
     181    this->debugDist = 1000;
     182  }
     183#endif
    172184  if (!alwaysHits)
    173185  {
     
    205217    (*it)->draw();
    206218  }
    207 #if 0
     219#if 1
    208220  glMatrixMode(GL_MODELVIEW);
    209221  glPushMatrix();
     
    219231  Vector mp = this->getAbsCoor();
    220232  Vector op = this->getAbsDir().apply( Vector(1, 0, 0) );
     233#ifdef DEBUG_AIMING
     234  op *= debugDist;
     235#else
    221236  op *= 1000;
     237#endif
    222238  op += mp;
    223239
Note: See TracChangeset for help on using the changeset viewer.