Respect the 'notmd' maphack when deciding to draw models in Polymer.

git-svn-id: https://svn.eduke32.com/eduke32@1680 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2010-08-03 15:06:24 +00:00
parent a1a5f9cb5a
commit 10830a7f3f

View file

@ -1305,7 +1305,9 @@ void polymer_drawsprite(int32_t snum)
bglFogf(GL_FOG_DENSITY,fogresult);
bglFogfv(GL_FOG_COLOR,fogcol);
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0)
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 &&
tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0 &&
!spriteext[tspr->owner].flags & SPREXT_NOTMD)
{
polymer_drawmdsprite(tspr);
return;