embeddings:: noshadow disables monster shadows

This commit is contained in:
Zeno Rogue 2023-02-05 21:58:56 +01:00
parent 0fd676e6d3
commit 472443a6d2
1 changed files with 1 additions and 0 deletions

View File

@ -611,6 +611,7 @@ EX bool noshadow;
#if CAP_SHAPES
EX void ShadowV(const shiftmatrix& V, const hpcshape& bp, PPR prio IS(PPR::MONSTER_SHADOW)) {
if(WDIM == 2 && GDIM == 3 && bp.shs != bp.she) {
if(noshadow) return;
auto& p = queuepolyat(V, bp, 0x18, PPR::TRANSPARENT_SHADOW);
p.outline = 0;
p.subprio = -100;