Skip to content

Commit

Permalink
Fixed: "Monsters become active at start of some maps" (see here http:…
Browse files Browse the repository at this point in the history
…//sourceforge.net/tracker/?func=detail&aid=2655883&group_id=74815&atid=542099).

Optimize: Adapted Killough's method for LOS checks. Original implementation sourced from Eternity but then heavily refactored to fit our data structures/object interfaces.
  • Loading branch information
danij committed May 31, 2009
1 parent 3192b7b commit 0ee28c2
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 234 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/p_maputil.h
Expand Up @@ -59,7 +59,7 @@ int P_BoxOnLineSide3(const int bbox[4], double lineSX,
double lineSY, double lineDX, double lineDY,
double linePerp, double lineLength,
double epsilon);
void P_MakeDivline(linedef_t* li, divline_t* dl);
void P_MakeDivline(const linedef_t* li, divline_t* dl);
int P_PointOnDivlineSide(float x, float y, const divline_t* line);
float P_InterceptVector(const divline_t* v2, const divline_t* v1);
int P_PointOnDivLineSidef(fvertex_t *pnt, fdivline_t *dline);
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/p_maputil.c
Expand Up @@ -425,9 +425,9 @@ int P_PointOnDivlineSide(float fx, float fy, const divline_t* line)
}
}

void P_MakeDivline(linedef_t* li, divline_t* dl)
void P_MakeDivline(const linedef_t* li, divline_t* dl)
{
vertex_t* vtx = li->L_v1;
const vertex_t* vtx = li->L_v1;

dl->pos[VX] = FLT2FIX(vtx->V_pos[VX]);
dl->pos[VY] = FLT2FIX(vtx->V_pos[VY]);
Expand Down

0 comments on commit 0ee28c2

Please sign in to comment.