This is the current code:
Code: Select all
EV_LightTurnOnPartway (m_LightTag, FixedDiv (m_Sector->ceilingplane.d - m_Sector->floorplane.d,
m_TopDist - m_Sector->floorplane.d));
Code: Select all
EV_LightTurnOnPartway (m_LightTag, FixedDiv (m_Sector->ceilingplane.d + m_Sector->floorplane.d,
m_TopDist + m_Sector->floorplane.d));
in both the UP and DOWN case.
Furthermore due to the sign inversion of the planes the following comparison doesn't work:
Code: Select all
m_TopDist != m_Sector->floor.plane.d