- GL adjustments for plane changes.
This commit is contained in:
parent
37e6429cf3
commit
59bb003285
12 changed files with 52 additions and 53 deletions
|
|
@ -240,8 +240,9 @@ void GLSprite::Draw(int pass)
|
|||
if (lightlist)
|
||||
{
|
||||
// set up the light slice
|
||||
static secplane_t bottommost = { 0, 0, FRACUNIT, 32767<<FRACBITS, FRACUNIT };
|
||||
static secplane_t topmost = { 0, 0, FRACUNIT, -(32767<<FRACBITS), FRACUNIT };
|
||||
#pragma message ("Undo this!")
|
||||
secplane_t bottommost; bottommost.set(0, 0, FRACUNIT, 32767 << FRACBITS);
|
||||
secplane_t topmost; topmost.set(0, 0, FRACUNIT, -(32767 << FRACBITS));
|
||||
|
||||
secplane_t *topplane = i == 0 ? &topmost : &(*lightlist)[i].plane;
|
||||
secplane_t *lowplane = i == (*lightlist).Size() - 1 ? &bottommost : &(*lightlist)[i + 1].plane;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue