From 941c2f2288344720a10dd13c8bc22217bd706a84 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 28 Feb 2013 00:21:59 +0000 Subject: [PATCH] implemented loading of the RMQe variant of BSP2 ("2PSB") git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11914 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=c977451eca9d2cc6643b1aff20901bc0b0ea2130 --- model_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index 0c4fe175..d4aabf2f 100644 --- a/model_shared.c +++ b/model_shared.c @@ -507,7 +507,7 @@ dp_model_t *Mod_LoadModel(dp_model_t *mod, qboolean crash, qboolean checkdisk) else if (!memcmp(buf, "ACTRHEAD", 8)) Mod_PSKMODEL_Load(mod, buf, bufend); else if (!memcmp(buf, "INTERQUAKEMODEL", 16)) Mod_INTERQUAKEMODEL_Load(mod, buf, bufend); else if (strlen(mod->name) >= 4 && !strcmp(mod->name + strlen(mod->name) - 4, ".map")) Mod_MAP_Load(mod, buf, bufend); - else if (num == BSPVERSION || num == 30 || !memcmp(buf, "BSP2", 4)) Mod_Q1BSP_Load(mod, buf, bufend); + else if (num == BSPVERSION || num == 30 || !memcmp(buf, "BSP2", 4) || !memcmp(buf, "2PSB", 4)) Mod_Q1BSP_Load(mod, buf, bufend); else Con_Printf("Mod_LoadModel: model \"%s\" is of unknown/unsupported type\n", mod->name); Mem_Free(buf); -- 2.39.2