Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6919 in orxonox.OLD for branches/current_cd/src


Ignore:
Timestamp:
Jan 31, 2006, 10:27:35 PM (19 years ago)
Author:
patrick
Message:

cd: less debug output, more debug functionality

Location:
branches/current_cd/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/current_cd/src/defs/debug.h

    r6909 r6919  
    7878  #define DEBUG_MODULE_OBJECT_MANAGER        2
    7979  #define DEBUG_MODULE_ANIM                  2
    80   #define DEBUG_MODULE_COLLISION_DETECTION   4
     80  #define DEBUG_MODULE_COLLISION_DETECTION   2
    8181  #define DEBUG_MODULE_SPATIAL_SEPARATION    2
    8282  #define DEBUG_MODULE_GUI                   2
  • branches/current_cd/src/lib/collision_detection/obb_tree_node.cc

    r6911 r6919  
    8888    delete this->bvElement;
    8989
    90   if( this->triangleIndexList1 != NULL)
    91     delete [] this->triangleIndexList1;
    92   if( this->triangleIndexList2 != NULL)
    93     delete [] this->triangleIndexList2;
     90//   if( this->triangleIndexList1 != NULL)
     91//     delete [] this->triangleIndexList1;
     92//   if( this->triangleIndexList2 != NULL)
     93//     delete [] this->triangleIndexList2;
    9494}
    9595
     
    735735
    736736
    737   if( 1/*drawMode & DRAW_BV_AXIS || drawMode & DRAW_ALL*/)
    738   {
    739     if(1 /*!(drawMode & DRAW_SINGLE && depth != 0)*/)
     737  if( drawMode & DRAW_BV_AXIS || drawMode & DRAW_ALL)
     738  {
     739    if( drawMode & DRAW_SINGLE && depth != 0)
    740740    {
    741741      /* draw the obb axes */
  • branches/current_cd/src/lib/math/matrix.cc

    r6909 r6919  
    259259  if (!(eigVc1.cross(eigVc3) == eigVc2))
    260260  {
    261     eigVc3.cross(eigVc1).debug();
    262     eigVc2.debug();
    263   }
    264   printf("ok\n");
     261    eigVc3.cross(eigVc1);
     262//     eigVc2.debug();
     263  }
     264/*  printf("ok\n")*/;
    265265}
    266266
  • branches/current_cd/src/story_entities/game_world.h

    r6845 r6919  
    99
    1010#include "story_entity.h"
     11#include "state.h"
    1112#include "game_world_data.h"
    1213
     
    5354    void togglePNodeVisibility() { this->showPNodes = !this->showPNodes; };
    5455    /** toggles the bounding volume (BV) visibility */
    55     void toggleBVVisibility() { this->showBV = !this->showBV; };
    56 
     56    void toggleBVVisibility() { dynamic_cast<GameWorld*>(State::getCurrentStoryEntity())->applyToggleBVVisibility(); }
     57    void applyToggleBVVisibility() { this->showBV = !this->showBV; }
    5758
    5859
Note: See TracChangeset for help on using the changeset viewer.