Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10543 in orxonox.OLD


Ignore:
Timestamp:
Jan 31, 2007, 5:22:27 AM (17 years ago)
Author:
nicolasc
Message:

fixed weapon switch bug

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10541 r10543  
    190190  this->weaponMan.addWeapon( wpRight1, 0, 1);
    191191
    192   this->weaponMan.addWeapon( wpLeft2, 1, 0);
    193   this->weaponMan.addWeapon( wpRight2, 1, 1);
    194 
    195   this->weaponMan.addWeapon( wpLeft3, 2, 0);
    196   this->weaponMan.addWeapon( wpRight3, 2, 1);
     192  this->weaponMan.addWeapon( wpLeft2, 1, 2);
     193  this->weaponMan.addWeapon( wpRight2, 1, 3);
     194
     195  this->weaponMan.addWeapon( wpLeft3, 2, 4);
     196  this->weaponMan.addWeapon( wpRight3, 2, 5);
    197197
    198198  this->weaponMan.addWeapon( wpLeft1, 3, 0);
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r10539 r10543  
    523523        dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged();
    524524    }
    525     else if (unlikely(tickWeapon != NULL && tickWeapon->getCurrentState() == WS_DEACTIVATING))
    526       this->currentSlotConfig[i]->setNextWeapon(NULL);
     525//     else if (unlikely(tickWeapon != NULL && tickWeapon->getCurrentState() == WS_DEACTIVATING))
     526//       this->currentSlotConfig[i]->setNextWeapon(NULL);
    527527  }
    528528}
Note: See TracChangeset for help on using the changeset viewer.