mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
- only process actually existing mirrors when updating their state.
This commit is contained in:
parent
6e1554d7ae
commit
3dfc3e73d2
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ void polymost_drawscreen(PLAYERp pp, int tx, int ty, int tz, binangle tang, fixe
|
|||
void UpdateWallPortalState()
|
||||
{
|
||||
// This is too obtuse to be maintained statically, but with 8 mirrors at most easy to be kept up to date.
|
||||
for (int i = 0; i < MAXMIRRORS; i++)
|
||||
for (int i = 0; i < mirrorcnt; i++)
|
||||
{
|
||||
if (mirror[i].mirrorwall < 0) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue