Changeset 10678 in orxonox.OLD for branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h
- Timestamp:
- Jun 7, 2007, 5:59:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h
r10676 r10678 32 32 33 33 inline Weapon* getCurrentWeapon() { return this->currentWeapon; } 34 inline void setCurrentWeapon(int config) { this->currentWeapon = this->configs[config]; }34 inline void setCurrentWeapon(int config) { config == -1 ? this->currentWeapon = NULL: this->currentWeapon = this->configs[config]; } 35 35 36 36 inline Weapon* getNextWeapon() { return this->nextWeapon; } 37 inline void setNextWeapon(int config) { if (config == -1) this->nextWeapon = NULL; elsethis->nextWeapon = configs[config]; }37 inline void setNextWeapon(int config) { config == -1 ? this->nextWeapon = NULL : this->nextWeapon = configs[config]; } 38 38 39 39 inline void setNextToCurrent() {this->currentWeapon = this->nextWeapon; };
Note: See TracChangeset
for help on using the changeset viewer.