mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
game.c: revert changes of r4861 ("consult g_mirrorCount instead of gotpic[]").
git-svn-id: https://svn.eduke32.com/eduke32@4879 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8f1df579e1
commit
a9cb38dbcf
1 changed files with 9 additions and 1 deletions
|
@ -4245,12 +4245,20 @@ static void G_SE40(int32_t smoothratio)
|
||||||
|
|
||||||
void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, int32_t smoothratio)
|
void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, int32_t smoothratio)
|
||||||
{
|
{
|
||||||
if (g_mirrorCount > 0
|
if ((gotpic[MIRROR>>3]&(1<<(MIRROR&7)))
|
||||||
#ifdef POLYMER
|
#ifdef POLYMER
|
||||||
&& (getrendermode() != REND_POLYMER)
|
&& (getrendermode() != REND_POLYMER)
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (g_mirrorCount == 0)
|
||||||
|
{
|
||||||
|
// NOTE: We can have g_mirrorCount==0 but gotpic'd MIRROR,
|
||||||
|
// for example in LNGA2.
|
||||||
|
gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int32_t i = 0, dst = INT32_MAX;
|
int32_t i = 0, dst = INT32_MAX;
|
||||||
|
|
||||||
for (int32_t k=g_mirrorCount-1; k>=0; k--)
|
for (int32_t k=g_mirrorCount-1; k>=0; k--)
|
||||||
|
|
Loading…
Reference in a new issue