MD2 models with more than 32768 vertices were not loaded properly.

This commit is contained in:
MaxED 2013-06-03 11:55:55 +00:00
parent e90473e7d9
commit d42a7459d7

View file

@ -397,13 +397,13 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
s.Position = ofs_tris + start;
for (int i = 0; i < num_tris; i++) {
polyIndecesList.Add((int)br.ReadInt16());
polyIndecesList.Add((int)br.ReadInt16());
polyIndecesList.Add((int)br.ReadInt16());
polyIndecesList.Add((int)br.ReadUInt16());
polyIndecesList.Add((int)br.ReadUInt16());
polyIndecesList.Add((int)br.ReadUInt16());
uvIndecesList.Add((int)br.ReadInt16());
uvIndecesList.Add((int)br.ReadInt16());
uvIndecesList.Add((int)br.ReadInt16());
uvIndecesList.Add((int)br.ReadUInt16());
uvIndecesList.Add((int)br.ReadUInt16());
uvIndecesList.Add((int)br.ReadUInt16());
}
//UV coords