diff options
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r-- | src/core/entity.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index a0b859b..bc1c698 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -80,7 +80,8 @@ void Entity::list() Entity::Entity(unsigned int flags) : entity_location(0.0f, 0.0f, 0.0f), - entity_color(1.0f, 1.0f, 1.0f, 1.0f) + entity_color(1.0f, 1.0f, 1.0f, 1.0f), + entity_color_second(1.0f, 1.0f, 1.0f, 1.0f) { entity_id = 0; entity_flags = flags; @@ -114,6 +115,7 @@ Entity::Entity(std::istream & is) is >> entity_flags; is >> entity_location; is >> entity_color; + is >> entity_color_second; is >> s; // shape entity_shape = (Shape) s; @@ -153,7 +155,6 @@ Entity::Entity(std::istream & is) // this entity is created clientside entity_clientstate = 0; - add(this, entity_id); } @@ -171,6 +172,7 @@ void Entity::serialize(std::ostream & os) const << entity_flags << " " << entity_location << " " << entity_color << " " + << entity_color_second << " " << entity_shape << " " << entity_radius << " " << entity_axis.forward() << " " |