Fix an itsy bitsy boo boo.
The old code generated a point on the sphere for the colour which was based on x and y values which started at 1 instead of 0 which was incorrect. Now I generate it straight from the stored position so colour will always match the position.
Change it back to my initial fix of subtracting 1 from the x and y loops variables.
The previous change would have broken the normal generation.
Also moved the abort checks to somewhere more sensible.
Merge remote-tracking branch 'fluffyfreak/Fix2295'