In response to Xyphon101
Xyphon101 wrote:
Something can't be "more correct" than something else.. If it's correct, it's correct. Maybe "more efficient" or "smarter to use" but not more correct..

That's probably your loose personal definition. In most applications where you have to follow a strict set of rules, such as programming and math, it's possible to have a more correct answer. Two answers may achieve the same thing, however, the one that follows the rules more will always be more correct.
In response to IainPeregrine
A little late, but this was a good thread.

#6 is the one I tend to use for most of my loops although I do it a little differently.

AI_Loop()
// All my loops call the same Delay which
// handles game paused, the units delay,
// game over, and etc. Return of 0 is exit loop.
if (!Delay())
return;
//
// execute some code
//
spawn()
AI_Loop()


ts
Page: 1 2