- fixed some warnings.

This commit is contained in:
Christoph Oelckers 2016-02-03 13:03:38 +01:00
parent e12174ffc1
commit db766f9fe5
2 changed files with 2 additions and 2 deletions

View file

@ -348,7 +348,7 @@ void GLWall::DrawDecal(DBaseDecal *decal)
{
secplane_t &lowplane = k == (*lightlist).Size() - 1 ? bottomplane : (*lightlist)[k + 1].plane;
float low1 = lowplane.ZatPoint(dv[1].x, dv[i].y);
float low1 = lowplane.ZatPoint(dv[1].x, dv[1].y);
float low2 = lowplane.ZatPoint(dv[2].x, dv[2].y);
if (low1 < dv[1].z && low2 < dv[2].z)

View file

@ -949,7 +949,7 @@ int GLMirrorPortal::ClipSeg(seg_t *seg)
int GLMirrorPortal::ClipSubsector(subsector_t *sub)
{
// this seg is completely behind the mirror!
for(int i=0;i<sub->numlines;i++)
for(unsigned int i=0;i<sub->numlines;i++)
{
if (P_PointOnLineSide(sub->firstline[i].v1->x, sub->firstline[i].v1->y, linedef) == 0) return PClip_Inside;
}