[Fix] Heh, planets are sometimes masquarading as stars. Sneaky.

This commit is contained in:
Rtch90 2017-11-25 16:02:25 +00:00
parent fe8fedd5b7
commit 92e9c4fe54
2 changed files with 3 additions and 1 deletions

View File

@ -267,6 +267,7 @@ StarSystem::StarSystem(int sector_x, int sector_y, int system_idx) {
SBody* planet = new SBody;
planet->type = TYPE_PLANET_DWARF;
planet->supertype = SUPERTYPE_NONE;
planet->seed = rand.Int32();
planet->temp = 0;
planet->parent = primary;
@ -405,6 +406,7 @@ void StarSystem::SBody::PickPlanetType(SBody* star, double distToPrimary, MTRand
SBody* moon = new SBody;
moon->type = TYPE_PLANET_DWARF;
moon->supertype = SUPERTYPE_NONE;
moon->seed = rand.Int32();
moon->temp = 0;
moon->parent = this;

View File

@ -67,7 +67,7 @@ public:
};
enum BodySuperType {
SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT
SUPERTYPE_NONE, SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT
};
struct BodyStats {