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:
parent
40a52b3724
commit
e5e7ba17da
1 changed files with 3 additions and 2 deletions
|
@ -4340,12 +4340,13 @@ static cmodel_t *CM_LoadMap (model_t *mod, qbyte *filein, size_t filelen, qboole
|
||||||
|
|
||||||
char name[MAX_QPATH];
|
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 = Mod_FindName (name);
|
||||||
*mod = *wmod;
|
*mod = *wmod;
|
||||||
mod->entities_raw = NULL;
|
mod->entities_raw = NULL;
|
||||||
mod->submodelof = wmod;
|
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));
|
memset(&mod->memgroup, 0, sizeof(mod->memgroup));
|
||||||
|
|
||||||
bm = CM_InlineModel (wmod, name);
|
bm = CM_InlineModel (wmod, name);
|
||||||
|
|
Loading…
Reference in a new issue