Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-13 19:58:50 +0000
committerStijn Buys <ingar@osirion.org>2010-11-13 19:58:50 +0000
commitb68389e450d537eed51683515d1c4d6f7450caf2 (patch)
treede85be0624341e6daf2fa7770d83ef7335faff0f /src/game/base/shipmodel.cc
parentc11d6ab431af85e14790ef2c2ed52cb5b523fbaf (diff)
don't set shipmodel info on world entities as this would make shipmodel info editable
through zone.ini
Diffstat (limited to 'src/game/base/shipmodel.cc')
-rw-r--r--src/game/base/shipmodel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/base/shipmodel.cc b/src/game/base/shipmodel.cc
index dcea80c..4d7af18 100644
--- a/src/game/base/shipmodel.cc
+++ b/src/game/base/shipmodel.cc
@@ -357,8 +357,6 @@ void ShipModel::apply(core::Entity *entity) const
if (radius())
entity->set_radius(radius());
-
- entity->set_info(this);
}
void ShipModel::apply(Ship *ship) const
@@ -366,6 +364,8 @@ void ShipModel::apply(Ship *ship) const
// apply ship model settings
apply (static_cast<core::Entity *>(ship));
+ ship->set_info(this);
+
ship->set_mass(mass());
ship->set_impulse_force(impulse_force());
ship->set_thrust_force(thrust_force());