From 7d0014bf34812fd1286606c1210e1085f88f7b58 Mon Sep 17 00:00:00 2001 From: Eukara Date: Fri, 20 Mar 2020 11:37:18 +0000 Subject: [PATCH] Fix RBSP fixed-patch loading. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5654 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/config_wastes.h | 2 +- engine/common/gl_q2bsp.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/common/config_wastes.h b/engine/common/config_wastes.h index f048fd018..385421f23 100644 --- a/engine/common/config_wastes.h +++ b/engine/common/config_wastes.h @@ -105,7 +105,7 @@ #undef DOOMWADS #undef MAP_PROC #undef Q2BSPS -#undef RFBSPS +#define RFBSPS #undef SPRMODELS #undef SP2MODELS #undef DSPMODELS diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index 5f2553ffe..48cbf2cae 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -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;