From db766f9fe50f1af1249bd37e732629acc4b00eb8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 3 Feb 2016 13:03:38 +0100 Subject: [PATCH] - fixed some warnings. --- src/gl/scene/gl_decal.cpp | 2 +- src/gl/scene/gl_portal.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/scene/gl_decal.cpp b/src/gl/scene/gl_decal.cpp index df9ae6e3d..745346db7 100644 --- a/src/gl/scene/gl_decal.cpp +++ b/src/gl/scene/gl_decal.cpp @@ -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) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index 42e6fb143..48b630586 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -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;inumlines;i++) + for(unsigned int i=0;inumlines;i++) { if (P_PointOnLineSide(sub->firstline[i].v1->x, sub->firstline[i].v1->y, linedef) == 0) return PClip_Inside; }