Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-07-01 20:16:33 +0000
committerStijn Buys <ingar@osirion.org>2009-07-01 20:16:33 +0000
commitb11b8c90c698d014bf8c2c2a9ed696255470ae59 (patch)
tree290c6b69d662b3ac41d3bf0f1f1ffca293dddd1b /src/core
parent024532b748b15a92303fd20c3b6a7062a37ca2ed (diff)
add player assets to the client side player list
Diffstat (limited to 'src/core')
-rw-r--r--src/core/entity.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 731b13b..24451e6 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -566,7 +566,9 @@ void EntityControlable::receive_server_create(std::istream &is)
for (GameInterface::Players::iterator pit = game()->players().begin(); pit != game()->players().end(); pit++ ) {
Player *player = (*pit);
if (player->id() == owner_id) {
+ player->add_asset(this);
entity_owner = player;
+
}
}