diff options
Diffstat (limited to 'src/renderer/tr_mesh.c')
-rw-r--r-- | src/renderer/tr_mesh.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/renderer/tr_mesh.c b/src/renderer/tr_mesh.c index 38c58ed2..ddcc62f7 100644 --- a/src/renderer/tr_mesh.c +++ b/src/renderer/tr_mesh.c @@ -186,12 +186,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); |