Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 28, 2006, 11:14:40 AM (20 years ago)
Author:
bensch
Message:

trunk: WeaponManager fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r6778 r6803  
    185185 * @param position the position of the given slot
    186186 */
    187 void WeaponManager::setSlotPosition(int slot, const Vector& position)
     187void WeaponManager::setSlotPosition(int slot, const Vector& position, PNode* parent)
    188188{
    189189  if (slot < this->slotCount)
     190  {
    190191    this->currentSlotConfig[slot].position.setRelCoor(position);
     192
     193    if (parent != NULL)
     194      this->currentSlotConfig[slot].position.setParent(parent);
     195  }
    191196}
    192197
Note: See TracChangeset for help on using the changeset viewer.