From: havoc Date: Thu, 28 Feb 2013 00:21:59 +0000 (+0000) Subject: implemented loading of the RMQe variant of BSP2 ("2PSB") X-Git-Tag: xonotic-v0.8.0~96^2~125 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c977451eca9d2cc6643b1aff20901bc0b0ea2130;p=xonotic%2Fdarkplaces.git 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 --- 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);