Changeset 10114 in orxonox.OLD for trunk/src/world_entities/projectiles/test_bullet.cc
- Timestamp:
- Dec 19, 2006, 11:55:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/test_bullet.cc
r9869 r10114 24 24 #include "debug.h" 25 25 26 #include "class_id_DEPRECATED.h" 27 ObjectListDefinition ID(TestBullet, CL_TEST_BULLET);26 27 ObjectListDefinition(TestBullet); 28 28 CREATE_FAST_FACTORY_STATIC(TestBullet); 29 29 … … 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.