Changeset 3301 for code/trunk/src/orxonox/objects/weaponsystem
- Timestamp:
- Jul 18, 2009, 4:03:59 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/objects/weaponsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/weaponsystem/Munition.cc
r3196 r3301 354 354 return false; 355 355 356 if (amount <= (unsigned int)needed_magazines)356 if (amount <= static_cast<unsigned int>(needed_magazines)) 357 357 { 358 358 // We need more magazines than we get, so just add them -
code/trunk/src/orxonox/objects/weaponsystem/WeaponSystem.h
r3196 r3301 84 84 85 85 static const unsigned int MAX_FIRE_MODES = 8; 86 static const unsigned int FIRE_MODE_UNASSIGNED = (unsigned int)-1;86 static const unsigned int FIRE_MODE_UNASSIGNED = static_cast<unsigned int>(-1); 87 87 88 88 static const unsigned int MAX_WEAPON_MODES = 8; 89 static const unsigned int WEAPON_MODE_UNASSIGNED = (unsigned int)-1;89 static const unsigned int WEAPON_MODE_UNASSIGNED = static_cast<unsigned int>(-1); 90 90 91 91 private:
Note: See TracChangeset
for help on using the changeset viewer.