- Duke: fixed mirror setup for new renderer.

A wall must be marked one-way to be used as a mirror.
This commit is contained in:
Christoph Oelckers 2021-05-08 16:27:01 +02:00
parent de904d3052
commit 43981bff85

View file

@ -824,7 +824,7 @@ static void SpawnPortals()
{
for (int i = 0; i < numwalls; i++)
{
if (wall[i].overpicnum == TILE_MIRROR) wall[i].portalflags |= PORTAL_WALL_MIRROR;
if (wall[i].overpicnum == TILE_MIRROR && (wall[i].cstat & CSTAT_WALL_1WAY)) wall[i].portalflags |= PORTAL_WALL_MIRROR;
}
portalClear();