Fixed floor

From ZDoom Wiki
Jump to navigation Jump to search

Map a fixed point value to the previous whole number.

 function int floor (int x)
 {
     return (x - 65535) & 0xFFFF0000;
 }