1
0
Fork 0
forked from fte/fteqw

fix a stupid bug when loading q2/q3 bsps.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5094 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2017-04-22 14:17:45 +00:00
parent 40a52b3724
commit e5e7ba17da

View file

@ -4340,12 +4340,13 @@ static cmodel_t *CM_LoadMap (model_t *mod, qbyte *filein, size_t filelen, qboole
char name[MAX_QPATH];
Q_snprintfz (name, sizeof(name), "*%i:%s", i, wmod->name);
Q_snprintfz (name, sizeof(name), "*%i:%s", i, wmod->publicname);
mod = Mod_FindName (name);
*mod = *wmod;
mod->entities_raw = NULL;
mod->submodelof = wmod;
Q_strncpyz(mod->name, name, sizeof(mod->name));
Q_strncpyz(mod->publicname, name, sizeof(mod->publicname));
Q_snprintfz (mod->name, sizeof(mod->name), "*%i:%s", i, wmod->name);
memset(&mod->memgroup, 0, sizeof(mod->memgroup));
bm = CM_InlineModel (wmod, name);