Fixed floor

From ZDoom Wiki
Revision as of 03:50, 27 December 2012 by Blue Shadow (talk | contribs) (Added a missing data type for the return value + links)
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;
 }