Showing posts with label just because you can doesn't mean you should. Show all posts
Showing posts with label just because you can doesn't mean you should. Show all posts

Wednesday, August 5, 2009

Why closed-source code is closed-source

This is an actual if statement from my gravity program:

if( (m_bRunEveryFrame || m_nFrameSkip <= 0) &&
((m_aTrail[i].planet == -2 && m_ship.alive ) ||
sim.IsValidIndex(m_aTrail[i].planet) &&
sim.p[m_aTrail[i].planet].alive &&
(sim.nAlive == 2 || tCalm > 60 ||
m_aTrail[i].planet == m_nCurPlanet ||
m_aTrail[i].planet == m_nSecPlanet ||
(sim.p[m_aTrail[i].planet].stable &&
(sim.p[m_aTrail[i].planet].mass >= DUSTMASS*2 || sim.nAlive < 10)) )) )
{
//do something
}
else
{
//do something else
}
I think I may have a problem.