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