Remove bad pointer arithmetic in polygon comparators (fixes #295)
I had some bad use of pointer arithmetic in the polygon sorting code, that was probably causing undefined behavior (and therefore wrong sorting and graphical glitches with sky walls) when gr_shaders
was off. I also removed the pointer arithmetic from the shader-enabled comparator code since I don't think that is correct C either.