Skip to content

Commit

Permalink
Subtract 4 ("gNd2") from GL verts lump length
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 3, 2003
1 parent 29b081b commit 67ba8f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion doomsday/Src/jDoom/p_setup.c
Expand Up @@ -15,6 +15,9 @@
// for more details.
//
// $Log$
// Revision 1.6 2003/07/03 20:51:38 skyjake
// Subtract 4 ("gNd2") from GL verts lump length
//
// Revision 1.5 2003/05/25 23:26:34 skyjake
// External resource locator, setting the data path
//
Expand Down Expand Up @@ -123,7 +126,7 @@ void P_LoadVertexes (int lump, int gllump)
ver = 2;
}
// There are additional vertices in gllump.
numvertexes += W_LumpLength(gllump) /
numvertexes += (W_LumpLength(gllump) - (ver==2? 4 : 0)) /
(ver==1? sizeof(mapvertex_t) : sizeof(glvert2_t));
}
vertexes = Z_Malloc (numvertexes*sizeof(vertex_t),PU_LEVEL,0);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/Src/jHexen/P_setup.c
Expand Up @@ -187,7 +187,7 @@ void P_LoadVertexes (int lump, int gllump)
ver = 2;
}
// There are additional vertices in gllump.
numvertexes += W_LumpLength(gllump) /
numvertexes += (W_LumpLength(gllump) - (ver==2? 4 : 0)) /
(ver==1? sizeof(mapvertex_t) : sizeof(glvert2_t));
}
vertexes = Z_Malloc (numvertexes*sizeof(vertex_t),PU_LEVEL,0);
Expand Down

0 comments on commit 67ba8f5

Please sign in to comment.