Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9191 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 5, 2006, 7:48:16 AM (18 years ago)
Author:
patrick
Message:

better cleanup and stuff

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/creatures/fps_player.cc

    r9190 r9191  
    5959{
    6060  this->setPlayer(NULL);
     61
     62  if( this->aimingSystem)
     63    delete this->aimingSystem;
    6164}
    6265
  • branches/presentation/src/world_entities/weapons/aiming_system.cc

    r9189 r9191  
    8282WorldEntity* AimingSystem::getNearestTarget()
    8383{
    84 
    85 //   PRINTF(0)("size: %i\n", this->selectionList.size());
    86 
    87 
    8884  if( this->selectionList.size() == 0)
    8985    return NULL;
     
    105101  }
    106102
    107   if( nearestEntity != this->owner)
     103
    108104    return nearestEntity;
    109   else
    110     return NULL;
    111105}
    112106
     
    119113void AimingSystem::hit(float damage, WorldEntity* killer)
    120114{
    121   this->selectionList.push_back(killer);
     115  if( this->owner != killer)
     116    this->selectionList.push_back(killer);
    122117}
    123118
Note: See TracChangeset for help on using the changeset viewer.