mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- SW: don't try to render non-existent mirrors with Polymost.
We got a counter variable, WTF did this code not use it?
This commit is contained in:
parent
c546bfc1ca
commit
b021aa9a02
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ void JS_DrawMirrors(PLAYERp pp, int tx, int ty, int tz, fixed_t tpq16ang, fixed
|
|||
bool bIsWallMirror = false;
|
||||
|
||||
{
|
||||
for (cnt = MAXMIRRORS - 1; cnt >= 0; cnt--)
|
||||
for (cnt = mirrorcnt - 1; cnt >= 0; cnt--)
|
||||
//if (testgotpic(cnt + MIRRORLABEL) || testgotpic(cnt + CAMSPRITE))
|
||||
if (testgotpic(cnt + MIRRORLABEL) || ((unsigned)mirror[cnt].campic < MAXTILES && testgotpic(mirror[cnt].campic)))
|
||||
{
|
||||
|
@ -288,7 +288,7 @@ void JS_DrawMirrors(PLAYERp pp, int tx, int ty, int tz, fixed_t tpq16ang, fixed
|
|||
renderDrawMasks();
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (mirror[cnt].mirrorWall)
|
||||
{
|
||||
// It's just a mirror
|
||||
// Prepare drawrooms for drawing mirror and calculate
|
||||
|
|
Loading…
Reference in a new issue