[Fix] Forgot to commit a couple of minor fixes.
This commit is contained in:
parent
e5ef17814a
commit
0d79a17c31
@ -193,7 +193,7 @@ void L3D::MainLoop(void) {
|
||||
HyperspaceTo(&s);
|
||||
|
||||
/* Linked list eh... Put player at planet f. */
|
||||
Frame* pframe = *++(++(++(++(Space::rootFrame->m_children.begin()))));
|
||||
Frame* pframe = *(++(++(++(++(Space::rootFrame->m_children.begin())))));
|
||||
player->SetFrame(pframe);
|
||||
player->SetPosition(vector3d(0, 100000, 10000000.0));
|
||||
|
||||
|
@ -300,11 +300,11 @@ StarSystem::StarSystem(int sector_x, int sector_y, int system_idx) {
|
||||
buf[2] = 0;
|
||||
(*i)->name = primary->name+buf;
|
||||
double d = 0.5*((*i)->radMin + (*i)->radMax);
|
||||
(*i)->L3DckPlanetType(primary, d, rand, true);
|
||||
(*i)->PickPlanetType(primary, d, rand, true);
|
||||
}
|
||||
}
|
||||
|
||||
void StarSystem::SBody::L3DckPlanetType(SBody* star, double distToPrimary, MTRand& rand, bool genMoons) {
|
||||
void StarSystem::SBody::PickPlanetType(SBody* star, double distToPrimary, MTRand& rand, bool genMoons) {
|
||||
float emass = mass / EARTH_MASS;
|
||||
|
||||
/* Surface temperature. */
|
||||
@ -434,7 +434,7 @@ void StarSystem::SBody::L3DckPlanetType(SBody* star, double distToPrimary, MTRan
|
||||
buf[0] = '1'+(idx++);
|
||||
buf[1] = 0;
|
||||
(*i)->name = name+buf;
|
||||
(*i)->L3DckPlanetType(star, d, rand, false);
|
||||
(*i)->PickPlanetType(star, d, rand, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
struct SBody {
|
||||
~SBody(void);
|
||||
void EliminateBadChildren(void); /* :D */
|
||||
void L3DckPlanetType(SBody*, double distToPrimary, MTRand& drand, bool genMoons);
|
||||
void PickPlanetType(SBody*, double distToPrimary, MTRand& drand, bool genMoons);
|
||||
SBody* parent;
|
||||
std::vector<SBody*> children;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user