Fixed: Doom64 lighting was not displayed in 2D modes

This commit is contained in:
ZZYZX 2017-02-13 02:06:29 +02:00
parent 6bb79c1c8b
commit db1db76b4b

View file

@ -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);
}