Mostly fix encore inversion issues with specials

This commit is contained in:
NepDisk 2025-07-17 14:30:22 -04:00
parent b051e142c1
commit 868c9c9a87

View file

@ -69,7 +69,10 @@ boolean R_NoEncore(sector_t *sector, levelflat_t *flat, boolean ceiling)
const terrain_t *terrain = (flat != NULL ? flat->terrain : NULL);
const sectorspecialflags_t flags = sector->specialflags;
if (flags & (SSF_SNEAKERPANEL|SSF_WATERPANEL|SSF_YELLOWPOGOSPRING|SSF_REDPOGOSPRING))
if (!(flags & SSF_SNEAKERPANEL
|| flags & SSF_WATERPANEL
|| flags & SSF_YELLOWPOGOSPRING
|| flags & SSF_REDPOGOSPRING))
{
// Automatically handle encore invert for sneaker, water and pogospring panels.
return invertEncore;