Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2006, 10:37:09 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: default target for turret and other weapons, that support targetting

File:
1 edited

Legend:

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

    r6918 r6920  
    281281    if (this->parent->isA(CL_PLAYABLE))
    282282      dynamic_cast<Playable*>(this->parent)->weaponConfigChanged();
     283    weapon->setDefaultTarget(this->crosshair);
    283284  }
    284285  PRINTF(3)("Added a new Weapon (%s::%s) to the WeaponManager: config %i/ slot %i\n", weapon->getClassName(), weapon->getName(), configID, slotID);
Note: See TracChangeset for help on using the changeset viewer.