From e87b6b902fb200b9f3712ed4a281232a7b078533 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 17 May 2018 00:35:26 +0000 Subject: [PATCH] G_HandleMirror(): When choosing which mirror to render, only choose from mirrors that are potentially visible. git-svn-id: https://svn.eduke32.com/eduke32@6887 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index d6536bfc2..7fee03b51 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -574,6 +574,9 @@ void G_HandleMirror(int32_t x, int32_t y, int32_t z, fix16_t a, fix16_t q16horiz for (bssize_t k=g_mirrorCount-1; k>=0; k--) { + if (!wallvisible(x, y, g_mirrorWall[k])) + continue; + const int32_t j = klabs(wall[g_mirrorWall[k]].x - x) + klabs(wall[g_mirrorWall[k]].y - y);