Remove slopetype from line_t.
- Recomputing it in the only two places where it's used is trivial, so it's basically a waste of space to precompute it.
This commit is contained in:
parent
e55e7b9a38
commit
4cf468452c
5 changed files with 35 additions and 70 deletions
|
|
@ -1888,13 +1888,6 @@ void P_AdjustLine (line_t *ld)
|
|||
ld->dx = v2->x - v1->x;
|
||||
ld->dy = v2->y - v1->y;
|
||||
|
||||
if (ld->dx == 0)
|
||||
ld->slopetype = ST_VERTICAL;
|
||||
else if (ld->dy == 0)
|
||||
ld->slopetype = ST_HORIZONTAL;
|
||||
else
|
||||
ld->slopetype = ((ld->dy ^ ld->dx) >= 0) ? ST_POSITIVE : ST_NEGATIVE;
|
||||
|
||||
if (v1->x < v2->x)
|
||||
{
|
||||
ld->bbox[BOXLEFT] = v1->x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue