mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
- Amalgamate ksgn and sgn into Sgn in cmdlib.h, and remove pragmas.h.
This commit is contained in:
parent
b36bea7c69
commit
5124c0daec
52 changed files with 42 additions and 99 deletions
|
@ -351,7 +351,7 @@ static inline void keepaway(int32_t *x, int32_t *y, int32_t w)
|
|||
{
|
||||
const int32_t x1 = clipit[w].x1, dx = clipit[w].x2-x1;
|
||||
const int32_t y1 = clipit[w].y1, dy = clipit[w].y2-y1;
|
||||
const int32_t ox = ksgn(-dy), oy = ksgn(dx);
|
||||
const int32_t ox = Sgn(-dy), oy = Sgn(dx);
|
||||
char first = (abs(dx) <= abs(dy));
|
||||
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue