Changeset 10443 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jan 28, 2007, 3:06:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc.cc
r10440 r10443 185 185 if( obj != NULL && obj->isA( Weapon::staticClassID())) 186 186 { 187 Weapon* w = dynamic_cast<Weapon*>(obj); 187 188 PRINTF(0)("created a weapon\n"); 189 int preferedSlot = w->getPreferedSlot(); 190 int preferedSide = w->getPreferedSide(); 191 192 this->addWeapon( w, preferedSide, preferedSlot); 188 193 } 189 194 } … … 210 215 { 211 216 if (weapon != NULL) 212 PRINTF( 2)("Unable to add Weapon (%s::%s) to %s::%s\n",217 PRINTF(1)("Unable to add Weapon (%s::%s) to %s::%s\n", 213 218 weapon->getClassCName(), weapon->getCName(), this->getClassCName(), this->getCName()); 214 219 else 215 PRINTF( 2)("No weapon defined\n");220 PRINTF(1)("No weapon defined\n"); 216 221 return false; 217 222
Note: See TracChangeset
for help on using the changeset viewer.