diff options
Diffstat (limited to 'src/core/entityglobe.cc')
-rw-r--r-- | src/core/entityglobe.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/core/entityglobe.cc b/src/core/entityglobe.cc index c27e05c..df12f66 100644 --- a/src/core/entityglobe.cc +++ b/src/core/entityglobe.cc @@ -17,18 +17,24 @@ namespace core EntityGlobe::EntityGlobe() : Entity() { + set_shape(Sphere); + entity_texture_id = 0; entity_corona_id = 0; + entity_rings_id = 0; + entity_rotationspeed = 0; - set_shape(Sphere); } EntityGlobe::EntityGlobe(std::istream & is) : Entity(is) { + set_shape(Sphere); + entity_texture_id = 0; entity_corona_id = 0; + entity_rings_id = 0; + entity_rotationspeed = 0; - set_shape(Sphere); } EntityGlobe::~EntityGlobe() @@ -38,7 +44,9 @@ EntityGlobe::~EntityGlobe() void EntityGlobe::serialize_server_create(std::ostream & os) const { Entity::serialize_server_create(os); - os << entity_rotationspeed << " \"" << texturename() << "\" \"" << coronaname() << "\" "; + os << entity_rotationspeed << " "; + os << "\"" << texturename() << "\" "; + os << "\"" << coronaname() << "\" "; } void EntityGlobe::receive_server_create(std::istream &is) |