From 256bc3ec08ed8a398b0983838069d6a8c8710d27 Mon Sep 17 00:00:00 2001 From: CommonLoon102 Date: Sun, 2 Feb 2020 21:06:21 +0100 Subject: [PATCH] take maphacks into consideration # Conflicts: # source/build/src/polymost.cpp --- source/build/src/polymost.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 0548f2209..7bde1a5d7 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -354,6 +354,10 @@ int32_t polymost_spriteHasTranslucency(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 && tile2model[Ptile2tile(tspr->picnum, tspr->pal)].framenum >= 0) return true;