Better Day/Night Cycles

Finally fixed. Now it works with any framerate. Also fixed the hovering
mountains. Submitted by Jarod Whiting.