Changeset 10526 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 30, 2007, 11:37:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_manager.cc
r10438 r10526 434 434 void WeaponManager::fire() 435 435 { 436 // printf("firing WM: ");437 436 Weapon* firingWeapon; 438 437 for(int i = 0; i < this->slotCount; i++) 439 438 { 440 439 // printf("%i ", i); 441 firingWeapon = this->currentSlotConfig[i]->getCurrentWeapon(); 442 if( firingWeapon != NULL && firingWeapon->getCurrentState() == WS_SHOOTING) continue; 443 if( firingWeapon != NULL) firingWeapon->requestAction(WA_SHOOT); 440 firingWeapon = this->currentSlotConfig[i]->getCurrentWeapon(); 441 if( firingWeapon != NULL) 442 { 443 PRINTF(0)("!=NULL\n"); 444 if( firingWeapon->getCurrentState() == WS_SHOOTING) continue; 445 PRINTF(0)("FIRE\n"); 446 447 firingWeapon->requestAction(WA_SHOOT); 448 } 444 449 } 445 450 // printf("\n");
Note: See TracChangeset
for help on using the changeset viewer.