take maphacks into consideration

# Conflicts:
#	source/build/src/polymost.cpp
This commit is contained in:
CommonLoon102 2020-02-02 21:06:21 +01:00 committed by Christoph Oelckers
parent 78ff1f0536
commit 256bc3ec08

View file

@ -354,6 +354,10 @@ int32_t polymost_spriteHasTranslucency(tspritetype const * const tspr)
int32_t polymost_spriteIsModelOrVoxel(tspritetype const * const tspr) int32_t polymost_spriteIsModelOrVoxel(tspritetype const * const tspr)
{ {
if (spriteext[tspr->owner].flags&SPREXT_NOTMD)
return false;
if (hw_models && tile2model[Ptile2tile(tspr->picnum, tspr->pal)].modelid >= 0 && if (hw_models && tile2model[Ptile2tile(tspr->picnum, tspr->pal)].modelid >= 0 &&
tile2model[Ptile2tile(tspr->picnum, tspr->pal)].framenum >= 0) tile2model[Ptile2tile(tspr->picnum, tspr->pal)].framenum >= 0)
return true; return true;