- Add licence headers to new files
- Add patch from Zack Middleton which fixes a few issues still
This commit is contained in:
parent
86c41d39da
commit
d37b2da593
6 changed files with 65 additions and 23 deletions
|
@ -185,12 +185,10 @@ int R_ComputeLOD( trRefEntity_t *ent ) {
|
|||
// and use that as a criteria for selecting LOD
|
||||
|
||||
#ifdef RAVENMD4
|
||||
// This is an MDR model.
|
||||
|
||||
if(tr.currentModel->md4)
|
||||
if(tr.currentModel->type == MOD_MDR)
|
||||
{
|
||||
int frameSize;
|
||||
mdr = (mdrHeader_t *) tr.currentModel->md4;
|
||||
mdr = (mdrHeader_t *) tr.currentModel->modelData;
|
||||
frameSize = (size_t) (&((mdrFrame_t *)0)->bones[mdr->numBones]);
|
||||
|
||||
mdrframe = (mdrFrame_t *) ((byte *) mdr + mdr->ofsFrames + frameSize * ent->e.frame);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue