- Timestamp:
- Jun 2, 2010, 12:27:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/worldentities/pawns/Pawn.cc
r7073 r7075 53 53 CreateFactory(Pawn); 54 54 55 Pawn::Pawn(BaseObject* creator) 55 Pawn::Pawn(BaseObject* creator) 56 56 : ControllableEntity(creator) 57 57 , RadarViewable(creator, static_cast<WorldEntity*>(this)) … … 363 363 { 364 364 if (this->weaponSystem_) 365 365 { 366 366 this->weaponSystem_->addWeaponPack(wPack); 367 368 367 this->addedWeaponPack(wPack); 368 } 369 369 } 370 370 … … 372 372 { 373 373 if (this->weaponSystem_) 374 374 { 375 375 if (!this->weaponSystem_->addWeaponPack(wPack)) 376 376 wPack->destroy(); 377 377 else 378 378 this->addedWeaponPack(wPack); 379 379 } 380 380 } 381 381
Note: See TracChangeset
for help on using the changeset viewer.