Quote:
Well, I've never understood it either. A couple of years ago, a friend of mine got me to try EA's Nascar 2003, which is a racing simulation based on the Papyrus simulation engine.

Hmm. Sounds neat, so I Googled it, and lo and behold, I found the source code to said engine, the main loop of which appears below:
Code:

int main(int argc, char *argv[])
{
// main racing loop
int miles=0;
while ( miles < 500 )
{
int turn=0;
int place;
while ( turn < 4 )
{
if ( !avoid_wreck() )
{
exit_vehicle();
stop_drop_and_roll();
abort();
}
chew_tobacco();
turn_left();
turn++;
}
miles++;
}
if ( place == 1 )
{
do_victory_lap();
drink_budweiser();
exit(1);
}
else
{
drink_budweiser_and_swear_loudly();
exit(0);
}
}



DMCA be damned!
_________________________
- Tony C
my empeg stuff