mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Disable Polymer lights attached to hidden switches.
git-svn-id: https://svn.eduke32.com/eduke32@5404 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5b24fc4f42
commit
e742b42ef9
1 changed files with 11 additions and 1 deletions
|
@ -7985,12 +7985,22 @@ static void A_DoLight(int32_t i)
|
||||||
s->x += dx>>7;
|
s->x += dx>>7;
|
||||||
s->y += dy>>7;
|
s->y += dy>>7;
|
||||||
|
|
||||||
|
int16_t sectnum = s->sectnum;
|
||||||
|
updatesector(s->x, s->y, §num);
|
||||||
|
|
||||||
|
if ((unsigned) sectnum >= MAXSECTORS || s->z > sector[sectnum].floorz)
|
||||||
|
{
|
||||||
|
s->x -= dx>>7;
|
||||||
|
s->y -= dy>>7;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
G_AddGameLight(0, i, ((s->yrepeat*tilesiz[s->picnum].y)<<1), 1024-ii*256,
|
G_AddGameLight(0, i, ((s->yrepeat*tilesiz[s->picnum].y)<<1), 1024-ii*256,
|
||||||
ii==0 ? (48+(255<<8)+(48<<16)) : 255+(48<<8)+(48<<16), PR_LIGHT_PRIO_LOW);
|
ii==0 ? (48+(255<<8)+(48<<16)) : 255+(48<<8)+(48<<16), PR_LIGHT_PRIO_LOW);
|
||||||
|
|
||||||
s->x -= dx>>7;
|
s->x -= dx>>7;
|
||||||
s->y -= dy>>7;
|
s->y -= dy>>7;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue