Changeset 9926 in orxonox.OLD for branches/network/src/world_entities/projectiles
- Timestamp:
- Nov 9, 2006, 7:41:00 PM (18 years ago)
- Location:
- branches/network/src/world_entities/projectiles
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/projectiles/bomb.cc
r9925 r9926 166 166 void Bomb::collidesWith (WorldEntity* entity, const Vector& location) 167 167 { 168 if (this->lifeCycle < .9f && entity->isA( CL_NPC))168 if (this->lifeCycle < .9f && entity->isA( "NPC" )) 169 169 this->lifeCycle = 0.9f; 170 170 } -
branches/network/src/world_entities/projectiles/laser.cc
r9925 r9926 107 107 void Laser::collidesWith(WorldEntity* entity, const Vector& location) 108 108 { 109 if (this->hitEntity != entity && entity->isA( CL_NPC))109 if (this->hitEntity != entity && entity->isA( "NPC" )) 110 110 this->destroy( entity ); 111 111 this->hitEntity = entity; -
branches/network/src/world_entities/projectiles/rail_projectile.cc
r9925 r9926 106 106 void RailProjectile::collidesWith(WorldEntity* entity, const Vector& location) 107 107 { 108 if (this->hitEntity != entity && entity->isA( CL_NPC))108 if (this->hitEntity != entity && entity->isA( "NPC" )) 109 109 this->destroy( entity ); 110 110 this->hitEntity = entity; -
branches/network/src/world_entities/projectiles/test_bullet.cc
r9925 r9926 119 119 void TestBullet::collidesWith(WorldEntity* entity, const Vector& location) 120 120 { 121 if (this->hitEntity != entity && entity->isA( CL_NPC))121 if (this->hitEntity != entity && entity->isA( "NPC" )) 122 122 this->destroy( entity ); 123 123 this->hitEntity = entity;
Note: See TracChangeset
for help on using the changeset viewer.