From 0722960f7d3d3f80b258b5d7ef4b121d5dbb32a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 1 Nov 2008 13:43:15 +0000 Subject: fixes network play --- src/core/entity.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core') 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; -- cgit v1.2.3