[Fix] Heh, planets are sometimes masquarading as stars. Sneaky.
This commit is contained in:
parent
fe8fedd5b7
commit
92e9c4fe54
@ -267,6 +267,7 @@ StarSystem::StarSystem(int sector_x, int sector_y, int system_idx) {
|
|||||||
|
|
||||||
SBody* planet = new SBody;
|
SBody* planet = new SBody;
|
||||||
planet->type = TYPE_PLANET_DWARF;
|
planet->type = TYPE_PLANET_DWARF;
|
||||||
|
planet->supertype = SUPERTYPE_NONE;
|
||||||
planet->seed = rand.Int32();
|
planet->seed = rand.Int32();
|
||||||
planet->temp = 0;
|
planet->temp = 0;
|
||||||
planet->parent = primary;
|
planet->parent = primary;
|
||||||
@ -405,6 +406,7 @@ void StarSystem::SBody::PickPlanetType(SBody* star, double distToPrimary, MTRand
|
|||||||
|
|
||||||
SBody* moon = new SBody;
|
SBody* moon = new SBody;
|
||||||
moon->type = TYPE_PLANET_DWARF;
|
moon->type = TYPE_PLANET_DWARF;
|
||||||
|
moon->supertype = SUPERTYPE_NONE;
|
||||||
moon->seed = rand.Int32();
|
moon->seed = rand.Int32();
|
||||||
moon->temp = 0;
|
moon->temp = 0;
|
||||||
moon->parent = this;
|
moon->parent = this;
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum BodySuperType {
|
enum BodySuperType {
|
||||||
SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT
|
SUPERTYPE_NONE, SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT
|
||||||
};
|
};
|
||||||
|
|
||||||
struct BodyStats {
|
struct BodyStats {
|
||||||
|
Loading…
Reference in New Issue
Block a user