mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed: Doom64 lighting was not displayed in 2D modes
This commit is contained in:
parent
6bb79c1c8b
commit
db1db76b4b
1 changed files with 4 additions and 4 deletions
|
@ -348,7 +348,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
else
|
||||
{
|
||||
color = s.Fields.GetValue("lightcolor", -1);
|
||||
color = PixelColor.Modulate(PixelColor.FromInt(s.Fields.GetValue("lightcolor", -1)), PixelColor.FromInt(s.Fields.GetValue("color_floor", -1))).ToInt();
|
||||
light = s.Fields.GetValue("lightfloor", 0);
|
||||
absolute = s.Fields.GetValue("lightfloorabsolute", false);
|
||||
}
|
||||
|
@ -400,7 +400,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
else
|
||||
{
|
||||
color = s.Fields.GetValue("lightcolor", -1);
|
||||
color = PixelColor.Modulate(PixelColor.FromInt(s.Fields.GetValue("lightcolor", -1)), PixelColor.FromInt(s.Fields.GetValue("color_ceiling", -1))).ToInt();
|
||||
light = s.Fields.GetValue("lightceiling", 0);
|
||||
absolute = s.Fields.GetValue("lightceilingabsolute", false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue