From fe96eee5db2acbef1ea0f360b180fd9f8f990444 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 28 Dec 2012 22:53:10 +0000 Subject: Addedd core:: support for EntityGlobe rings. --- src/core/entityglobe.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/core/entityglobe.cc') 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) -- cgit v1.2.3