Changeset 10114 in orxonox.OLD for trunk/src/world_entities/projectiles/laser.cc
- Timestamp:
- Dec 19, 2006, 11:55:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/laser.cc
r9869 r10114 28 28 29 29 30 #include "class_id_DEPRECATED.h" 30 31 31 ObjectListDefinition(Laser); 32 32 CREATE_FAST_FACTORY_STATIC(Laser); … … 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;
Note: See TracChangeset
for help on using the changeset viewer.