mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Sectors mode: fixed a bug where applying floor and ceiling brightness gradients didn't work correctly
This commit is contained in:
parent
d0a0479579
commit
ba1abbcb4b
1 changed files with 2 additions and 2 deletions
|
@ -2062,7 +2062,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach(Sector s in orderedselection)
|
||||
{
|
||||
s.Fields.BeforeFieldsChange();
|
||||
double u = index / (orderedselection.Count - 1);
|
||||
double u = index / (double)(orderedselection.Count - 1);
|
||||
double b = Math.Round(InterpolationTools.Interpolate(startbrightness, endbrightness, u, interpolationmode));
|
||||
|
||||
//absolute flag set?
|
||||
|
@ -2102,7 +2102,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
int index = 0;
|
||||
foreach(Sector s in orderedselection)
|
||||
{
|
||||
float u = index / (float)(orderedselection.Count - 1);
|
||||
double u = index / (double)(orderedselection.Count - 1);
|
||||
s.Brightness = (int)Math.Round(InterpolationTools.Interpolate(start.Brightness, end.Brightness, u, interpolationmode)); //mxd
|
||||
index++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue