Changeset 3618 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Mar 21, 2005, 3:26:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3608 r3618 192 192 void Player::fire() 193 193 { 194 if( this->bFire)194 if( this->bFire) 195 195 { 196 196 if(this->activeWeapon != NULL) 197 197 this->activeWeapon->fire(); 198 198 } 199 if( this->bWeaponChange)199 if( this->bWeaponChange && this->weapons->getSize() > 1) 200 200 { 201 Weapon* w = this->weapons->enumerate(); 201 PRINTF(1)("changing the weapon of the player: deactivate old, activate new\n"); 202 this->activeWeapon->deactivate(); 203 this->weapons->enumerate(); 202 204 this->activeWeapon = this->weapons->nextElement(this->activeWeapon); 205 this->activeWeapon->activate(); 203 206 } 204 207 }
Note: See TracChangeset
for help on using the changeset viewer.