From 318aebc4ad9ff6cfc490ece5051b8e49b16c5235 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 28 Jul 2014 22:23:17 +0200 Subject: [PATCH] - fixed: the vertex collection code used incorrect indices for checking the checkmap array. --- src/gl/data/gl_setup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gl/data/gl_setup.cpp b/src/gl/data/gl_setup.cpp index cf2f62d74a..9603cc858e 100644 --- a/src/gl/data/gl_setup.cpp +++ b/src/gl/data/gl_setup.cpp @@ -641,16 +641,16 @@ void gl_PreprocessLevel() int vtnum1 = int(l->v1 - vertexes); int vtnum2 = int(l->v2 - vertexes); - if (checkmap[numsectors + vtnum1] < i) + if (checkmap[vtnum1] < i) { - checkmap[numsectors + vtnum1] = i; + checkmap[vtnum1] = i; sectors[i].e->vertices.Push(&vertexes[vtnum1]); vertexes[vtnum1].dirty = true; } - if (checkmap[numsectors + vtnum2] < i) + if (checkmap[vtnum2] < i) { - checkmap[numsectors + vtnum2] = i; + checkmap[vtnum2] = i; sectors[i].e->vertices.Push(&vertexes[vtnum2]); vertexes[vtnum2].dirty = true; }