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>2008-07-28 19:37:31 +0000
committerStijn Buys <ingar@osirion.org>2008-07-28 19:37:31 +0000
commitd389a31f9816b55d8c7685ec24b9ab814252d693 (patch)
tree9b2577692e543fa6c59fcda508f92c3eb839ac7a /src/game/ship.cc
parent17408276791033e8122819185abf3bcb01740105 (diff)
zone support
Diffstat (limited to 'src/game/ship.cc')
-rw-r--r--src/game/ship.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/ship.cc b/src/game/ship.cc
index 66d8b52..f61c9bd 100644
--- a/src/game/ship.cc
+++ b/src/game/ship.cc
@@ -23,19 +23,23 @@ Ship::Ship(core::Player *owner, ShipModel *shipmodel) :
entity_modelname = "ships/" + shipmodel->modelname();
entity_name = shipmodel->name() + ": <^B" + owner->name() + "^N>";
entity_label = shipmodel->label();
- ship_shipmodel = shipmodel;
entity_moduletypeid = ship_enttype;
current_target_direction = 0.0f;
current_target_pitch = 0.0f;;
- current_target_roll = 0.0f;;
+ current_target_roll = 0.0f;
+
+ entity_color = owner->color();
+ entity_color_second = owner->color_second();
+
+ ship_shipmodel = shipmodel;
+ ship_jumpdrive = shipmodel->shipmodel_jumpdrive;
}
Ship::~Ship()
{
- if (entity_owner)
- entity_owner->remove_asset(this);
+
}
void Ship::frame(float seconds)