I've attached a small patch to stardb.cpp that fixes the bug and makes stars convertable to barycenters (and vice versa) with Modify. The patch affects two lines of code: one is the functional change, the other just fixes a typo in a comment.
...Well, phpbb doesn't want to let me attach a patch file, so here it is inline:
Code: Select all
Index: stardb.cpp
===================================================================
--- stardb.cpp (revision 4582)
+++ stardb.cpp (working copy)
@@ -823,7 +823,7 @@
{
StarDetails* existingDetails = star->getDetails();
- // If we're modifying and existing star and it already has a
+ // If we're modifying an existing star and it already has a
// customized details record, we'll just modify that.
if (!existingDetails->shared())
{
@@ -839,6 +839,7 @@
existingDetails->setTexture(details->getTexture());
if ((existingDetails->getKnowledge() & StarDetails::KnowRotation) == 0)
existingDetails->setRotationModel(details->getRotationModel());
+ existingDetails->setVisibility(details->getVisibility());
}
details = existingDetails;
--Chris