Subversion Repositories eduke32

Rev

Rev 4875 | Rev 4898 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4875 Rev 4879
Line 4243... Line 4243...
4243
}
4243
}
4244
#endif
4244
#endif
4245
4245
4246
void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, int32_t smoothratio)
4246
void G_HandleMirror(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, int32_t smoothratio)
4247
{
4247
{
4248
    if (g_mirrorCount > 0
4248
    if ((gotpic[MIRROR>>3]&(1<<(MIRROR&7)))
4249
#ifdef POLYMER
4249
#ifdef POLYMER
4250
        && (getrendermode() != REND_POLYMER)
4250
        && (getrendermode() != REND_POLYMER)
4251
#endif
4251
#endif
4252
        )
4252
        )
4253
    {
4253
    {
-
 
4254
        if (g_mirrorCount == 0)
-
 
4255
        {
-
 
4256
            // NOTE: We can have g_mirrorCount==0 but gotpic'd MIRROR,
-
 
4257
            // for example in LNGA2.
-
 
4258
            gotpic[MIRROR>>3] &= ~(1<<(MIRROR&7));
-
 
4259
            return;
-
 
4260
        }
-
 
4261
4254
        int32_t i = 0, dst = INT32_MAX;
4262
        int32_t i = 0, dst = INT32_MAX;
4255
4263
4256
        for (int32_t k=g_mirrorCount-1; k>=0; k--)
4264
        for (int32_t k=g_mirrorCount-1; k>=0; k--)
4257
        {
4265
        {
4258
            const int32_t j =
4266
            const int32_t j =