make this slightly look better lel
This commit is contained in:
1 parent
dd81b2cc41
commit
ec0a1a97e0
2 files changed
+5
-12
No files matched your search
@@ -491,11 +491,9 @@ static FUINT HWR_CalcWallLight(FUINT lightnum, seg_t *seg)
|
||||
|
||||
if (seg != NULL && P_ApplyLightOffsetFine(lightnum, seg->frontsector))
|
||||
{
|
||||
if (cv_glfakecontrast.value == 2) // Smooth setting
|
||||
finallight += seg->hwLightOffset;
|
||||
else
|
||||
finallight += seg->lightOffset * 8;
|
||||
INT16 offset = (cv_glfakecontrast.value == 2) ? seg->hwLightOffset : ((INT16)seg->lightOffset * 8);
|
||||
|
||||
finallight += offset;
|
||||
finallight = CLAMP(finallight, 0 , 255);
|
||||
}
|
||||
|
||||
@@ -511,11 +509,9 @@ static FUINT HWR_CalcSlopeLight(FUINT lightnum, pslope_t *slope, const sector_t
|
||||
|
||||
if (slope != NULL && sector != NULL && P_ApplyLightOffsetFine(lightnum, sector))
|
||||
{
|
||||
if (cv_glfakecontrast.value == 2) // Smooth setting
|
||||
finallight += (fof ? -slope->hwLightOffset : slope->hwLightOffset);
|
||||
else
|
||||
finallight += (fof ? -slope->lightOffset * 8 : slope->lightOffset * 8);
|
||||
INT16 offset = (cv_glfakecontrast.value == 2) ? slope->hwLightOffset : (INT16)slope->lightOffset;
|
||||
|
||||
finallight += (fof ? -offset : offset);
|
||||
finallight = CLAMP(finallight, 0 , 255);
|
||||
}
|
||||
|
||||
|
||||
+1
-4
@@ -423,10 +423,7 @@ static INT32 S_ScaleVolumeWithSplitscreen(INT32 volume)
|
||||
|
||||
root = FixedSqrt((splitscreen + 1) * (FRACUNIT/3));
|
||||
|
||||
return FixedDiv(
|
||||
volume * FRACUNIT,
|
||||
root
|
||||
) / FRACUNIT;
|
||||
return FixedDiv(volume * FRACUNIT, root) / FRACUNIT;
|
||||
}
|
||||
|
||||
void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
|
||||
|
||||
Reference in new issue
Block a user