mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
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
This commit is contained in:
parent
d6d078114c
commit
e87b6b902f
1 changed files with 3 additions and 0 deletions
|
@ -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--)
|
for (bssize_t k=g_mirrorCount-1; k>=0; k--)
|
||||||
{
|
{
|
||||||
|
if (!wallvisible(x, y, g_mirrorWall[k]))
|
||||||
|
continue;
|
||||||
|
|
||||||
const int32_t j =
|
const int32_t j =
|
||||||
klabs(wall[g_mirrorWall[k]].x - x) +
|
klabs(wall[g_mirrorWall[k]].x - x) +
|
||||||
klabs(wall[g_mirrorWall[k]].y - y);
|
klabs(wall[g_mirrorWall[k]].y - y);
|
||||||
|
|
Loading…
Reference in a new issue