Changeset 10718 in orxonox.OLD for branches/presentation/src/world_entities/weapons/bsp_weapon.cc
- Timestamp:
- Jun 18, 2007, 5:06:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/bsp_weapon.cc
r10713 r10718 170 170 if ( shortestDist < (pos - target->getAbsCoor()).len() ) 171 171 { 172 173 #ifdef DEBUG_AIMING 172 174 printf("HIT WALL\n"); 173 #ifdef DEBUG_AIMING174 175 this->debugDist = shortestDist; 175 176 #endif … … 190 191 if (r < p ) 191 192 { 193 #ifdef DEBUG_AIMING 192 194 printf( "HIT %s\n", target->getClassName().c_str() ); 195 #endif 193 196 target->hit( this->damage, this ); 194 197 } 198 #ifdef DEBUG_AIMING 195 199 else 196 200 printf( "MISHIT %s\n", target->getClassName().c_str() ); 201 #endif 197 202 198 203 } 199 204 else 200 205 { 206 #ifdef DEBUG_AIMING 201 207 printf( "HIT %s\n", target->getClassName().c_str() ); 208 #endif 202 209 target->hit( this->damage, this ); 203 210 } … … 217 224 (*it)->draw(); 218 225 } 219 #if 1226 #ifdef DEBUG_AIMING 220 227 glMatrixMode(GL_MODELVIEW); 221 228 glPushMatrix(); … … 231 238 Vector mp = this->getAbsCoor(); 232 239 Vector op = this->getAbsDir().apply( Vector(1, 0, 0) ); 233 #ifdef DEBUG_AIMING 240 234 241 op *= debugDist; 235 #else236 op *= 1000;237 #endif238 242 op += mp; 239 243
Note: See TracChangeset
for help on using the changeset viewer.