Re "Challenge" by Juha-Matti Myllylä - Correction
I'm sorry, but your code was so badly presented that I missed its program flow! I now see it is....
for ( int x = 0; x < UNIVERSE_X_SIZE; x++ )
for ( int y = 0; y < UNIVERSE_Y_SIZE; y++ )
for ( int z = 0; z < UNIVERSE_Z_SIZE; z++ )
if ( aUniverse->FindObjectAt( aId, x, y, z )
return rlCoordinate( x, y, z );
Well, firstly, you shouldn't be using "for" loops (with specific start and end points) and then knackering up the program flow by breaking out of the loops like this. You should use "while" or "do" loops as appropriate and break out of them cleanly.
My goodness, you really ARE sloppy, aren't you? I bet your workmates love you!!


