That doesn't appear to be DBC code there. However, your problem has to do with the camera range. I good idea I have heard suggested is to make your sky a sphere, positioned at the camera location and of radius equal to the camera's range. If you constantly position it at the camera's location, you will never hit the edge and if the radius is the camera's range, you will never lose it.
Other than that, I can't be much help for darkGDK. Try posting in the DarkGDK forum
Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose