diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-01 15:20:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-01 15:20:14 +0000 |
commit | 614ce1267772d67825a32fb7495a049cd6498fe5 (patch) | |
tree | 20374ef083b62524e831bce2a8a89fcc70a63f42 /src/core/slots.cc | |
parent | 18969b1c444597741547598d35e8f0f97acd39dc (diff) |
Initial support for turret-style weapons.
Diffstat (limited to 'src/core/slots.cc')
-rw-r--r-- | src/core/slots.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/slots.cc b/src/core/slots.cc index 12f6208..6d6096a 100644 --- a/src/core/slots.cc +++ b/src/core/slots.cc @@ -23,8 +23,7 @@ void Slots::load(model::Model *model) { for (model::Model::Weapons::iterator it = model->weapons().begin(); it != model->weapons().end(); ++it) { Slot *slot = new Slot(); - slot->set_location((*it)->location()); - slot->set_axis((*it)->axis()); + slot->load((*it)); slots_container.push_back(slot); } //con_debug << " loaded " << slots_container.size() << " entity slots" << std::endl; |