Fix RBSP fixed-patch loading.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5654 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-03-20 11:37:18 +00:00
parent 9d3bf714a5
commit 7d0014bf34
2 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,7 @@
#undef DOOMWADS
#undef MAP_PROC
#undef Q2BSPS
#undef RFBSPS
#define RFBSPS
#undef SPRMODELS
#undef SP2MODELS
#undef DSPMODELS

View File

@ -3019,6 +3019,10 @@ static void CModRBSP_BuildSurfMesh(model_t *mod, msurface_t *out, builddata_t *b
{
GL_CreateMeshForPatch(mod, out->mesh, LittleLong(in->patchwidth), LittleLong(in->patchheight), LittleLong(in->num_vertices), LittleLong(in->firstvertex));
}
else if (LittleLong(in->facetype) == MST_PATCH_FIXED)
{
GL_CreateMeshForPatchFixed(mod, out->mesh, LittleLong(in->patchwidth), LittleLong(in->patchheight), LittleLong(in->num_vertices), LittleLong(in->firstvertex));
}
else if (LittleLong(in->facetype) == MST_PLANAR || LittleLong(in->facetype) == MST_TRIANGLE_SOUP)
{
unsigned int fv = LittleLong(in->firstvertex), i;