Changeset 9191 in orxonox.OLD for branches/presentation/src/world_entities
- Timestamp:
 - Jul 5, 2006, 7:48:16 AM (19 years ago)
 - Location:
 - branches/presentation/src/world_entities
 - Files:
 - 
          
- 2 edited
 
- 
          creatures/fps_player.cc (modified) (1 diff)
 - 
          weapons/aiming_system.cc (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/presentation/src/world_entities/creatures/fps_player.cc
r9190 r9191 59 59 { 60 60 this->setPlayer(NULL); 61 62 if( this->aimingSystem) 63 delete this->aimingSystem; 61 64 } 62 65  - 
        
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9189 r9191 82 82 WorldEntity* AimingSystem::getNearestTarget() 83 83 { 84 85 // PRINTF(0)("size: %i\n", this->selectionList.size());86 87 88 84 if( this->selectionList.size() == 0) 89 85 return NULL; … … 105 101 } 106 102 107 if( nearestEntity != this->owner) 103 108 104 return nearestEntity; 109 else110 return NULL;111 105 } 112 106 … … 119 113 void AimingSystem::hit(float damage, WorldEntity* killer) 120 114 { 121 this->selectionList.push_back(killer); 115 if( this->owner != killer) 116 this->selectionList.push_back(killer); 122 117 } 123 118  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






