Fixed the planes bug Tig reported?
This commit is contained in:
parent
66c5021921
commit
476034f8e3
1 changed files with 5 additions and 1 deletions
|
@ -594,7 +594,11 @@ void ModQ3_LoadFaces (lump_t *l)
|
|||
out->numedges = 0;
|
||||
out->flags = 0;
|
||||
|
||||
planenum = FindPlane(in->normal,tempVertices[in->firstvertex].position); //ENDIAN bug!! flip in->normal
|
||||
if (in->type == 1) {
|
||||
planenum = FindPlane(in->normal,tempVertices[in->firstvertex].position); //ENDIAN bug!! flip in->normal
|
||||
} else {
|
||||
planenum = 0; //just any valid plane pointer...
|
||||
}
|
||||
out->plane = loadmodel->planes + planenum;
|
||||
|
||||
// lighting info
|
||||
|
|
Loading…
Reference in a new issue