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 05, 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.

Current Earth-Destruction Status This page is Class A WWW Depricated

Lilypie Third Birthday tickers
Lilypie First Birthday tickers
All material on these pages is ©2003-2010 by Joe Belland, Dave Belland, Tom Adams, Cari Burud and/or Paul Harold except for the stuff that we blatantly stole from other sources. All rights reserved.