Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-01 13:43:15 +0000
committerStijn Buys <ingar@osirion.org>2008-11-01 13:43:15 +0000
commit0722960f7d3d3f80b258b5d7ef4b121d5dbb32a8 (patch)
tree1a3e44a91daa06b0aa005204fba62e304712b647 /src
parent83d6c17799c4d448a67ab5cdad02954282fa5c94 (diff)
fixes network play
Diffstat (limited to 'src')
-rw-r--r--src/core/entity.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index f9062e0..539c8d5 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -109,6 +109,7 @@ Entity::Entity(unsigned int flags) :
entity_zone = 0;
entity_oldzone = 0;
+ entity_visible = true;
entity_serverside = false;
@@ -121,6 +122,7 @@ Entity::Entity(std::istream & is)
entity_id = 0;
entity_zone = 0;
entity_oldzone = 0;
+ entity_visible = true;
entity_model = 0;
entity_clientstate = 0;
@@ -439,7 +441,7 @@ void EntityDynamic::serialize_server_update(std::ostream & os) const
void EntityDynamic::receive_server_update(std::istream &is)
{
- unsigned int o;
+ unsigned int o = 0;
is >> o; // visibility
if (o) {
entity_visible = true;