mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 12:41:35 -10:00
Rewrites the macros to avoid unnecessary divisions. The compiler is now free to precalculate the scaling ratio and perform it in a single multiply. Note that the previous placement of the parentheses meant that the compiler (at least GCC) was performing a multiply followed by a divide. Signed-off-by: Peter Mitsis <[email protected]>