- revert default planes to static in gl_sprite.cpp

This commit is contained in:
Christoph Oelckers 2016-04-06 22:09:21 +02:00
parent a0d0d9339e
commit dbad946fe3
2 changed files with 3 additions and 4 deletions

View File

@ -237,9 +237,8 @@ void GLSprite::Draw(int pass)
if (lightlist)
{
// set up the light slice
#pragma message ("Undo this!")
secplane_t bottommost; bottommost.set(0, 0, FRACUNIT, 32767 << FRACBITS);
secplane_t topmost; topmost.set(0, 0, FRACUNIT, -(32767 << FRACBITS));
static secplane_t bottommost = { {0, 0, 1.}, FLT_MAX };
static secplane_t topmost = { { 0, 0, 1. }, -FLT_MAX };
secplane_t *topplane = i == 0 ? &topmost : &(*lightlist)[i].plane;
secplane_t *lowplane = i == (*lightlist).Size() - 1 ? &bottommost : &(*lightlist)[i + 1].plane;

View File

@ -307,7 +307,7 @@ struct secplane_t
// the plane is defined as a*x + b*y + c*z + d = 0
// ic is 1/c, for faster Z calculations
private:
//private:
DVector3 normal;
double D, negiC; // negative iC because that also saves a negation in all methods using this.
public: