Fix slope inconsistency for 64bit

- Fixed: Slope logic would change between 32bit and 64bit due to float math. This new version is demo compatible with the old 32bit code, so nobody will notice a difference.

Fixes http://forum.zdoom.org/viewtopic.php?f=2&t=47079