Fixed minor glitches in Rio (occasional flickering gaps during movement) using The Power of Math.
Merge pull request #838 from Niektory/master

Fixed minor glitches in Rio (occasional flickering gaps during movement)...