mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- revert default planes to static in gl_sprite.cpp
This commit is contained in:
parent
a0d0d9339e
commit
dbad946fe3
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue