Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10549 in orxonox.OLD for trunk/src/world_entities/npcs


Ignore:
Timestamp:
Jan 31, 2007, 6:30:06 AM (17 years ago)
Author:
patrick
Message:

more on mounting weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10546 r10549  
    304304  this->setAI( false);
    305305  this->setAbsCoor(-10000,-10000,-10000);
    306  
     306
    307307
    308308}
     
    409409        int slot = ws->getWeaponSlot();
    410410        int side = ws->getWeaponSide();
    411         this->getWeaponManager().setSlotPosition(slot, ws->getRelCoor());
     411        this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter());
    412412        this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
    413413        PRINTF(0)("setting slot %i\n", slot);
    414         ws->getRelCoor().debug();
     414        (*it).second->getCenter().debug();
    415415      }
    416416    }
Note: See TracChangeset for help on using the changeset viewer.