mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed: the vertex collection code used incorrect indices for checking the checkmap array.
This commit is contained in:
parent
355dd1c2f5
commit
318aebc4ad
1 changed files with 4 additions and 4 deletions
|
@ -641,16 +641,16 @@ void gl_PreprocessLevel()
|
||||||
int vtnum1 = int(l->v1 - vertexes);
|
int vtnum1 = int(l->v1 - vertexes);
|
||||||
int vtnum2 = int(l->v2 - 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]);
|
sectors[i].e->vertices.Push(&vertexes[vtnum1]);
|
||||||
vertexes[vtnum1].dirty = true;
|
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]);
|
sectors[i].e->vertices.Push(&vertexes[vtnum2]);
|
||||||
vertexes[vtnum2].dirty = true;
|
vertexes[vtnum2].dirty = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue