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-03-16 14:51:37 +0000
committerStijn Buys <ingar@osirion.org>2008-03-16 14:51:37 +0000
commit7d7b9324f1f0db14648fb9fe32256d7942af77b9 (patch)
treeef2a60c275f22c6b1ab7430a299138597030b581 /src/game/ship.cc
parent9a7ca1743f0c74042bca4d4903f7e56fe810edce (diff)
somewhat smoother network play, player assets, client pif updates
Diffstat (limited to 'src/game/ship.cc')
-rw-r--r--src/game/ship.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/ship.cc b/src/game/ship.cc
index 5edbd7d..1dd37bc 100644
--- a/src/game/ship.cc
+++ b/src/game/ship.cc
@@ -20,8 +20,6 @@ namespace game {
Ship::Ship(core::Player *owner, ShipModel *shipmodel) :
core::EntityControlable(owner, ship_enttype)
{
- // entity properties
- entity_owner = owner;
entity_modelname = "ships/" + shipmodel->modelname();
entity_name = shipmodel->name() + ": <" + owner->name() + ">";
ship_shipmodel = shipmodel;
@@ -29,6 +27,8 @@ Ship::Ship(core::Player *owner, ShipModel *shipmodel) :
Ship::~Ship()
{
+ if (entity_owner)
+ entity_owner->remove_asset(this);
}
void Ship::frame(float seconds)