Changeset 6165 for code/branches/presentation2/src
- Timestamp:
- Nov 26, 2009, 6:06:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc
r6153 r6165 150 150 { 151 151 this->munitionname_ = munitionname; 152 this->munitiontype_ = ClassByString(this->munitionname_); 152 Identifier* identifier = ClassByString(this->munitionname_); 153 if (identifier) 154 this->munitiontype_ = identifier; 155 else 156 COUT(2) << "Warning: No munition class defined in WeaponMode " << this->getName() << std::endl; 153 157 this->updateMunition(); 154 158 }
Note: See TracChangeset
for help on using the changeset viewer.