diff --git a/src/p_slopes.c b/src/p_slopes.c index 20652a08a..3c124a550 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -78,7 +78,7 @@ void P_UpdateSlopeLightOffset(pslope_t *slope) } else { - light = FixedDiv(R_PointToAngle2(0, 0, abs(slope->d.x), abs(slope->d.y)), ANGLE_90); + light = FixedDiv(R_PointToAngle2(0, 0, abs(slope->normal.y), abs(slope->normal.x)), ANGLE_90); } zMul = min(FRACUNIT, abs(slope->zdelta)*3/2); // *3/2, to make 60 degree slopes match walls. diff --git a/src/r_plane.c b/src/r_plane.c index 4018ed49b..5a97c2dbe 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -388,7 +388,7 @@ visplane_t *R_FindPlane(fixed_t height, INT32 picnum, INT32 lightlevel, if (slope != NULL && P_ApplyLightOffset(lightlevel >> LIGHTSEGSHIFT)) { - if (reverseLight) + if (reverseLight && maplighting.directional == true) { lightlevel -= slope->lightOffset * 8; }