mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed: color_absolute is not actually in GZDoom
This commit is contained in:
parent
cb8473fa09
commit
7e502a1fa2
7 changed files with 10 additions and 17 deletions
|
@ -464,12 +464,6 @@ universalfields
|
|||
default = "FFFFFF";
|
||||
}
|
||||
|
||||
color_absolute
|
||||
{
|
||||
type = 3;
|
||||
default = false;
|
||||
}
|
||||
|
||||
comment
|
||||
{
|
||||
type = 2;
|
||||
|
|
|
@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2855")]
|
||||
[assembly: AssemblyVersion("2.3.0.2856")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
[assembly: AssemblyHash("76b2b1b")]
|
||||
[assembly: AssemblyHash("cb8473f")]
|
||||
|
|
|
@ -29,5 +29,5 @@ using System.Resources;
|
|||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.3.0.2855")]
|
||||
[assembly: AssemblyVersion("2.3.0.2856")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en")]
|
||||
|
|
|
@ -202,13 +202,14 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
if (VavoomType)
|
||||
{
|
||||
ColorFloor = sd.ColorFloor;
|
||||
ColorCeiling = sd.ColorCeiling;
|
||||
ColorFloor = sd.ColorCeiling;
|
||||
ColorCeiling = sd.ColorFloor;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ColorFloor = sd.ColorCeiling;
|
||||
ColorCeiling = sd.ColorFloor;
|
||||
ColorFloor = sd.ColorFloor;
|
||||
ColorCeiling = sd.ColorCeiling;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
internal PixelColor ColorWallBottom;
|
||||
internal PixelColor ColorWallTop;
|
||||
internal PixelColor ColorSprites;
|
||||
internal bool Doom64Absolute;
|
||||
|
||||
// Sectors that must be updated when this sector is changed
|
||||
// The boolean value is the 'includeneighbours' of the UpdateSectorGeometry function which
|
||||
|
@ -318,7 +317,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
ColorSprites = PixelColor.FromInt(sector.Fields.GetValue("color_sprites", PixelColor.INT_WHITE));
|
||||
ColorWallTop = PixelColor.FromInt(sector.Fields.GetValue("color_walltop", PixelColor.INT_WHITE));
|
||||
ColorWallBottom = PixelColor.FromInt(sector.Fields.GetValue("color_wallbottom", PixelColor.INT_WHITE));
|
||||
Doom64Absolute = sector.Fields.GetValue("color_absolute", false);
|
||||
|
||||
PixelColor floorbrightness = PixelColor.FromInt(mode.CalculateBrightness(lightfloor));
|
||||
PixelColor ceilingbrightness = PixelColor.FromInt(mode.CalculateBrightness(lightceiling));
|
||||
|
|
|
@ -151,7 +151,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
// [ZZ] Apply Doom 64 lighting here (for extrafloor)
|
||||
if (extrafloor != null) color = PixelColor.Modulate(PixelColor.FromInt(color), extrafloor.VavoomType ? extrafloor.ColorCeiling : extrafloor.ColorFloor).WithAlpha(alpha).ToInt();
|
||||
if (extrafloor != null) color = PixelColor.Modulate(PixelColor.FromInt(color), extrafloor.ColorCeiling).WithAlpha(alpha).ToInt();
|
||||
|
||||
//mxd. Determine fog density
|
||||
fogfactor = CalculateFogFactor(targetbrightness);
|
||||
|
|
|
@ -137,7 +137,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
// [ZZ] Apply Doom 64 lighting here (for extrafloor)
|
||||
if (extrafloor != null) color = PixelColor.Modulate(PixelColor.FromInt(color), extrafloor.VavoomType ? extrafloor.ColorFloor : extrafloor.ColorCeiling).WithAlpha(alpha).ToInt();
|
||||
if (extrafloor != null) color = PixelColor.Modulate(PixelColor.FromInt(color), extrafloor.ColorFloor).WithAlpha(alpha).ToInt();
|
||||
|
||||
//mxd. Determine fog density
|
||||
fogfactor = CalculateFogFactor(targetbrightness);
|
||||
|
|
Loading…
Reference in a new issue