Commit 9d0ed64d authored by Steven Fuller's avatar Steven Fuller

better-looking version of FixedByFrac.

parent fa351bb1
......@@ -58,7 +58,7 @@ typedef _int64 int64_t;
#endif
fixed FixedByFrac(fixed a, fixed b)
{
return (fixed)(((int64_t)(a * (int64_t)b))>>TILESHIFT);
return ((int64_t)a * (int64_t)b) >> TILESHIFT;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment