My realignment logic wasn't actually realigning the bsp data...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5936 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f9b9087011
commit
93253a026a
1 changed files with 2 additions and 1 deletions
|
@ -5354,7 +5354,7 @@ static qboolean QDECL Mod_LoadBrushModel (model_t *mod, void *buffer, size_t fsi
|
|||
if (misaligned)
|
||||
{ //pre-phong versions of tyrutils wrote misaligned lumps. These crash on arm/etc.
|
||||
char *tmp;
|
||||
int ofs = 0;
|
||||
unsigned int ofs = 0;
|
||||
Con_DPrintf(CON_WARNING"%s: Misaligned lumps detected\n", mod->name);
|
||||
tmp = BZ_Malloc(fsize);
|
||||
memcpy(tmp, mod_base, fsize);
|
||||
|
@ -5369,6 +5369,7 @@ static qboolean QDECL Mod_LoadBrushModel (model_t *mod, void *buffer, size_t fsi
|
|||
memcpy(mod_base + ofs, tmp+header.lumps[i].fileofs, header.lumps[i].filelen);
|
||||
header.lumps[i].fileofs = ofs;
|
||||
ofs += header.lumps[i].filelen;
|
||||
ofs = (ofs + 3) & ~3u;
|
||||
}
|
||||
BZ_Free(tmp);
|
||||
bspx = NULL;
|
||||
|
|
Loading…
Reference in a new issue