[Fix] Heh, planets are sometimes masquarading as stars. Sneaky.
This commit is contained in:
parent
57a9d1d91f
commit
de8bab4108
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user